http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a8a7e7c9/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java index 0fca21e..cf49a53 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java @@ -55,17 +55,17 @@ public final class Generate { @Override String imports() { //@formatter:off - return "" - + "import java.io.Serializable;%n" - + "import org.apache.logging.log4j.Level;%n" - + "import org.apache.logging.log4j.LogManager;%n" - + "import org.apache.logging.log4j.Logger;%n" - + "import org.apache.logging.log4j.Marker;%n" - + "import org.apache.logging.log4j.message.Message;%n" - + "import org.apache.logging.log4j.message.MessageFactory;%n" - + "import org.apache.logging.log4j.spi.AbstractLogger;%n" - + "import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;%n" - + "import org.apache.logging.log4j.util.MessageSupplier;%n" + return "" + + "import java.io.Serializable;%n" + + "import org.apache.logging.log4j.Level;%n" + + "import org.apache.logging.log4j.LogManager;%n" + + "import org.apache.logging.log4j.Logger;%n" + + "import org.apache.logging.log4j.Marker;%n" + + "import org.apache.logging.log4j.message.Message;%n" + + "import org.apache.logging.log4j.message.MessageFactory;%n" + + "import org.apache.logging.log4j.spi.AbstractLogger;%n" + + "import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;%n" + + "import org.apache.logging.log4j.util.MessageSupplier;%n" + "import org.apache.logging.log4j.util.Supplier;%n" + "%n"; //@formatter:on @@ -74,15 +74,15 @@ public final class Generate { @Override String declaration() { //@formatter:off - return "" - + "/**%n" - + " * Custom Logger interface with convenience methods for%n" - + " * %s%n" - + " * <p>Compatible with Log4j 2.6 or higher.</p>%n" - + " */%n" - + "public final class %s implements Serializable {%n" - + " private static final long serialVersionUID = " + System.nanoTime() + "L;%n" - + " private final ExtendedLoggerWrapper logger;%n" + return "" + + "/**%n" + + " * Custom Logger interface with convenience methods for%n" + + " * %s%n" + + " * <p>Compatible with Log4j 2.6 or higher.</p>%n" + + " */%n" + + "public final class %s implements Serializable {%n" + + " private static final long serialVersionUID = " + System.nanoTime() + "L;%n" + + " private final ExtendedLoggerWrapper logger;%n" + "%n"; //@formatter:on } @@ -90,11 +90,11 @@ public final class Generate { @Override String constructor() { //@formatter:off - return "" - + "%n" - + " private %s(final Logger logger) {%n" + return "" + + "%n" + + " private %s(final Logger logger) {%n" + " this.logger = new ExtendedLoggerWrapper((AbstractLogger) logger, logger.getName(), " - + "logger.getMessageFactory());%n" + + "logger.getMessageFactory());%n" + " }%n"; //@formatter:on } @@ -108,16 +108,16 @@ public final class Generate { @Override String imports() { //@formatter:off - return "" - + "import org.apache.logging.log4j.Level;%n" - + "import org.apache.logging.log4j.LogManager;%n" - + "import org.apache.logging.log4j.Logger;%n" - + "import org.apache.logging.log4j.Marker;%n" - + "import org.apache.logging.log4j.message.Message;%n" - + "import org.apache.logging.log4j.message.MessageFactory;%n" - + "import org.apache.logging.log4j.spi.AbstractLogger;%n" - + "import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;%n" - + "import org.apache.logging.log4j.util.MessageSupplier;%n" + return "" + + "import org.apache.logging.log4j.Level;%n" + + "import org.apache.logging.log4j.LogManager;%n" + + "import org.apache.logging.log4j.Logger;%n" + + "import org.apache.logging.log4j.Marker;%n" + + "import org.apache.logging.log4j.message.Message;%n" + + "import org.apache.logging.log4j.message.MessageFactory;%n" + + "import org.apache.logging.log4j.spi.AbstractLogger;%n" + + "import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;%n" + + "import org.apache.logging.log4j.util.MessageSupplier;%n" + "import org.apache.logging.log4j.util.Supplier;%n" + "%n"; //@formatter:on @@ -126,15 +126,15 @@ public final class Generate { @Override String declaration() { //@formatter:off - return "" - + "/**%n" - + " * Extended Logger interface with convenience methods for%n" - + " * %s%n" - + " * <p>Compatible with Log4j 2.6 or higher.</p>%n" - + " */%n" - + "public final class %s extends ExtendedLoggerWrapper {%n" - + " private static final long serialVersionUID = " + System.nanoTime() + "L;%n" - + " private final ExtendedLoggerWrapper logger;%n" + return "" + + "/**%n" + + " * Extended Logger interface with convenience methods for%n" + + " * %s%n" + + " * <p>Compatible with Log4j 2.6 or higher.</p>%n" + + " */%n" + + "public final class %s extends ExtendedLoggerWrapper {%n" + + " private static final long serialVersionUID = " + System.nanoTime() + "L;%n" + + " private final ExtendedLoggerWrapper logger;%n" + "%n"; //@formatter:on } @@ -142,11 +142,11 @@ public final class Generate { @Override String constructor() { //@formatter:off - return "" - + "%n" - + " private %s(final Logger logger) {%n" - + " super((AbstractLogger) logger, logger.getName(), logger.getMessageFactory());%n" - + " this.logger = this;%n" + return "" + + "%n" + + " private %s(final Logger logger) {%n" + + " super((AbstractLogger) logger, logger.getName(), logger.getMessageFactory());%n" + + " this.logger = this;%n" + " }%n"; //@formatter:on } @@ -165,826 +165,826 @@ public final class Generate { abstract Class<?> generator(); } - static final String FQCN_FIELD = "" + static final String FQCN_FIELD = "" + " private static final String FQCN = %s.class.getName();%n"; - static final String LEVEL_FIELD = "" + static final String LEVEL_FIELD = "" + " private static final Level %s = Level.forName(\"%s\", %d);%n"; - static final String FACTORY_METHODS = "" + static final String FACTORY_METHODS = "" //@formatter:off - + "%n" - + " /**%n" - + " * Returns a custom Logger with the name of the calling class.%n" - + " * %n" - + " * @return The custom Logger for the calling class.%n" - + " */%n" - + " public static CLASSNAME create() {%n" - + " final Logger wrapped = LogManager.getLogger();%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger using the fully qualified name of the Class as%n" - + " * the Logger name.%n" - + " * %n" - + " * @param loggerName The Class whose name should be used as the Logger name.%n" - + " * If null it will default to the calling class.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final Class<?> loggerName) {%n" - + " final Logger wrapped = LogManager.getLogger(loggerName);%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger using the fully qualified name of the Class as%n" - + " * the Logger name.%n" - + " * %n" - + " * @param loggerName The Class whose name should be used as the Logger name.%n" - + " * If null it will default to the calling class.%n" - + " * @param messageFactory The message factory is used only when creating a%n" - + " * logger, subsequent use does not change the logger but will log%n" - + " * a warning if mismatched.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final Class<?> loggerName, final MessageFactory" - + " messageFactory) {%n" - + " final Logger wrapped = LogManager.getLogger(loggerName, messageFactory);%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger using the fully qualified class name of the value%n" - + " * as the Logger name.%n" - + " * %n" - + " * @param value The value whose class name should be used as the Logger%n" - + " * name. If null the name of the calling class will be used as%n" - + " * the logger name.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final Object value) {%n" - + " final Logger wrapped = LogManager.getLogger(value);%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger using the fully qualified class name of the value%n" - + " * as the Logger name.%n" - + " * %n" - + " * @param value The value whose class name should be used as the Logger%n" - + " * name. If null the name of the calling class will be used as%n" - + " * the logger name.%n" - + " * @param messageFactory The message factory is used only when creating a%n" - + " * logger, subsequent use does not change the logger but will log%n" - + " * a warning if mismatched.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final Object value, final MessageFactory messageFactory) {%n" - + " final Logger wrapped = LogManager.getLogger(value, messageFactory);%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger with the specified name.%n" - + " * %n" - + " * @param name The logger name. If null the name of the calling class will%n" - + " * be used.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final String name) {%n" - + " final Logger wrapped = LogManager.getLogger(name);%n" - + " return new CLASSNAME(wrapped);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Returns a custom Logger with the specified name.%n" - + " * %n" - + " * @param name The logger name. If null the name of the calling class will%n" - + " * be used.%n" - + " * @param messageFactory The message factory is used only when creating a%n" - + " * logger, subsequent use does not change the logger but will log%n" - + " * a warning if mismatched.%n" - + " * @return The custom Logger.%n" - + " */%n" - + " public static CLASSNAME create(final String name, final MessageFactory messageFactory) {%n" - + " final Logger wrapped = LogManager.getLogger(name, messageFactory);%n" - + " return new CLASSNAME(wrapped);%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger with the name of the calling class.%n" + + " * %n" + + " * @return The custom Logger for the calling class.%n" + + " */%n" + + " public static CLASSNAME create() {%n" + + " final Logger wrapped = LogManager.getLogger();%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger using the fully qualified name of the Class as%n" + + " * the Logger name.%n" + + " * %n" + + " * @param loggerName The Class whose name should be used as the Logger name.%n" + + " * If null it will default to the calling class.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final Class<?> loggerName) {%n" + + " final Logger wrapped = LogManager.getLogger(loggerName);%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger using the fully qualified name of the Class as%n" + + " * the Logger name.%n" + + " * %n" + + " * @param loggerName The Class whose name should be used as the Logger name.%n" + + " * If null it will default to the calling class.%n" + + " * @param messageFactory The message factory is used only when creating a%n" + + " * logger, subsequent use does not change the logger but will log%n" + + " * a warning if mismatched.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final Class<?> loggerName, final MessageFactory" + + " messageFactory) {%n" + + " final Logger wrapped = LogManager.getLogger(loggerName, messageFactory);%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger using the fully qualified class name of the value%n" + + " * as the Logger name.%n" + + " * %n" + + " * @param value The value whose class name should be used as the Logger%n" + + " * name. If null the name of the calling class will be used as%n" + + " * the logger name.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final Object value) {%n" + + " final Logger wrapped = LogManager.getLogger(value);%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger using the fully qualified class name of the value%n" + + " * as the Logger name.%n" + + " * %n" + + " * @param value The value whose class name should be used as the Logger%n" + + " * name. If null the name of the calling class will be used as%n" + + " * the logger name.%n" + + " * @param messageFactory The message factory is used only when creating a%n" + + " * logger, subsequent use does not change the logger but will log%n" + + " * a warning if mismatched.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final Object value, final MessageFactory messageFactory) {%n" + + " final Logger wrapped = LogManager.getLogger(value, messageFactory);%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger with the specified name.%n" + + " * %n" + + " * @param name The logger name. If null the name of the calling class will%n" + + " * be used.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final String name) {%n" + + " final Logger wrapped = LogManager.getLogger(name);%n" + + " return new CLASSNAME(wrapped);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Returns a custom Logger with the specified name.%n" + + " * %n" + + " * @param name The logger name. If null the name of the calling class will%n" + + " * be used.%n" + + " * @param messageFactory The message factory is used only when creating a%n" + + " * logger, subsequent use does not change the logger but will log%n" + + " * a warning if mismatched.%n" + + " * @return The custom Logger.%n" + + " */%n" + + " public static CLASSNAME create(final String name, final MessageFactory messageFactory) {%n" + + " final Logger wrapped = LogManager.getLogger(name, messageFactory);%n" + + " return new CLASSNAME(wrapped);%n" + " }%n"; //@formatter:on - static final String METHODS = "" + static final String METHODS = "" //@formatter:off - + "%n" - + " /**%n" - + " * Logs a message with the specific Marker at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param msg the message string to be logged%n" - + " */%n" - + " public void methodName(final Marker marker, final Message msg) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, msg, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with the specific Marker at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param msg the message string to be logged%n" - + " * @param t A Throwable or null.%n" - + " */%n" - + " public void methodName(final Marker marker, final Message msg, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, msg, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message object to log.%n" - + " */%n" - + " public void methodName(final Marker marker, final Object message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message CharSequence with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message CharSequence to log.%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final CharSequence message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " */%n" - + " public void methodName(final Marker marker, final Object message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the CharSequence to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final CharSequence message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message object to log.%n" - + " */%n" - + " public void methodName(final Marker marker, final String message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param params parameters to the message.%n" - + " * @see #getMessageFactory()%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object... params) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, params);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " + + "%n" + + " /**%n" + + " * Logs a message with the specific Marker at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param msg the message string to be logged%n" + + " */%n" + + " public void methodName(final Marker marker, final Message msg) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, msg, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with the specific Marker at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param msg the message string to be logged%n" + + " * @param t A Throwable or null.%n" + + " */%n" + + " public void methodName(final Marker marker, final Message msg, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, msg, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message object to log.%n" + + " */%n" + + " public void methodName(final Marker marker, final Object message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message CharSequence with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message CharSequence to log.%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final CharSequence message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " */%n" + + " public void methodName(final Marker marker, final Object message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the CharSequence to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final CharSequence message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message object to log.%n" + + " */%n" + + " public void methodName(final Marker marker, final String message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param params parameters to the message.%n" + + " * @see #getMessageFactory()%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object... params) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, params);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @param p8 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7, final Object p8) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7, " + + "p8);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @param p8 parameter to the message.%n" + + " * @param p9 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7, final Object p8, final Object p9) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7, " + + "p8, p9);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param marker the marker data specific to this log statement%n" + + " * @param message the message to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " */%n" + + " public void methodName(final Marker marker, final String message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs the specified Message at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param msg the message string to be logged%n" + + " */%n" + + " public void methodName(final Message msg) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, msg, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs the specified Message at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param msg the message string to be logged%n" + + " * @param t A Throwable or null.%n" + + " */%n" + + " public void methodName(final Message msg, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, msg, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message object to log.%n" + + " */%n" + + " public void methodName(final Object message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param message the message to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " */%n" + + " public void methodName(final Object message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message CharSequence with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message CharSequence to log.%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final CharSequence message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a CharSequence at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param message the CharSequence to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final CharSequence message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message object to log.%n" + + " */%n" + + " public void methodName(final String message) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param params parameters to the message.%n" + + " * @see #getMessageFactory()%n" + + " */%n" + + " public void methodName(final String message, final Object... params) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, params);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + "final Object p1) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @param p8 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7, final Object p8) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7, " - + "p8);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @param p8 parameter to the message.%n" - + " * @param p9 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7, final Object p8, final Object p9) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, p0, p1, p2, p3, p4, p5, p6, p7, " - + "p8, p9);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param marker the marker data specific to this log statement%n" - + " * @param message the message to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " */%n" - + " public void methodName(final Marker marker, final String message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, marker, message, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs the specified Message at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param msg the message string to be logged%n" - + " */%n" - + " public void methodName(final Message msg) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, msg, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs the specified Message at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param msg the message string to be logged%n" - + " * @param t A Throwable or null.%n" - + " */%n" - + " public void methodName(final Message msg, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, msg, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message object to log.%n" - + " */%n" - + " public void methodName(final Object message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param message the message to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " */%n" - + " public void methodName(final Object message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message CharSequence with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message CharSequence to log.%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final CharSequence message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a CharSequence at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param message the CharSequence to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final CharSequence message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message object with the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message object to log.%n" - + " */%n" - + " public void methodName(final String message) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param params parameters to the message.%n" - + " * @see #getMessageFactory()%n" - + " */%n" - + " public void methodName(final String message, final Object... params) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, params);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @param p8 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7, final Object p8) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7, " - + "p8);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" - + " * %n" - + " * @param message the message to log; the format depends on the message factory.%n" - + " * @param p0 parameter to the message.%n" - + " * @param p1 parameter to the message.%n" - + " * @param p2 parameter to the message.%n" - + " * @param p3 parameter to the message.%n" - + " * @param p4 parameter to the message.%n" - + " * @param p5 parameter to the message.%n" - + " * @param p6 parameter to the message.%n" - + " * @param p7 parameter to the message.%n" - + " * @param p8 parameter to the message.%n" - + " * @param p9 parameter to the message.%n" - + " * @see #getMessageFactory()%n" - + " * @since Log4j-2.6%n" - + " */%n" - + " public void methodName(final String message, final Object p0, " - + "final Object p1, final Object p2,%n" - + " final Object p3, final Object p4, final Object p5, final Object p6,%n" - + " final Object p7, final Object p8, final Object p9) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7, " - + "p8, p9);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" - + " * the {@link Throwable} {@code t} passed as parameter.%n" - + " * %n" - + " * @param message the message to log.%n" - + " * @param t the exception to log, including its stack trace.%n" - + " */%n" - + " public void methodName(final String message, final Throwable t) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @param p8 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7, final Object p8) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7, " + + "p8);%n" + " }%n" - + "%n" - + " /**%n" + + "%n" + + " /**%n" + + " * Logs a message with parameters at the {@code CUSTOM_LEVEL} level.%n" + + " * %n" + + " * @param message the message to log; the format depends on the message factory.%n" + + " * @param p0 parameter to the message.%n" + + " * @param p1 parameter to the message.%n" + + " * @param p2 parameter to the message.%n" + + " * @param p3 parameter to the message.%n" + + " * @param p4 parameter to the message.%n" + + " * @param p5 parameter to the message.%n" + + " * @param p6 parameter to the message.%n" + + " * @param p7 parameter to the message.%n" + + " * @param p8 parameter to the message.%n" + + " * @param p9 parameter to the message.%n" + + " * @see #getMessageFactory()%n" + + " * @since Log4j-2.6%n" + + " */%n" + + " public void methodName(final String message, final Object p0, " + + "final Object p1, final Object p2,%n" + + " final Object p3, final Object p4, final Object p5, final Object p6,%n" + + " final Object p7, final Object p8, final Object p9) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, p0, p1, p2, p3, p4, p5, p6, p7, " + + "p8, p9);%n" + + " }%n" + + "%n" + + " /**%n" + + " * Logs a message at the {@code CUSTOM_LEVEL} level including the stack trace of%n" + + " * the {@link Throwable} {@code t} passed as parameter.%n" + + " * %n" + + " * @param message the message to log.%n" + + " * @param t the exception to log, including its stack trace.%n" + + " */%n" + + " public void methodName(final String message, final Throwable t) {%n" + + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, message, t);%n" + + " }%n" + + "%n" + + " /**%n" + " * Logs a message which is only to be constructed if the logging level is the {@code CUSTOM_LEVEL}" - + "level.%n" - + " *%n" - + " * @param msgSupplier A function, which when called, produces the desired log message;%n" - + " * the format depends on the message factory.%n" - + " * @since Log4j-2.4%n" - + " */%n" - + " public void methodName(final Supplier<?> msgSupplier) {%n" - + " logger.logIfEnabled(FQCN, CUSTOM_LEVEL, null, msgSupplier, (Throwable) null);%n" - + " }%n" - + "%n" - + " /**%n" - + " * Logs a message (only to be constructed if the logging level is the {@code CUSTOM_LEVEL}%n" + + "level.%n" + + " *%n" + + " * @param msgSupplier A function, which when called, produces the desired log message;%n" + + " * the format depends on the message factory.%n" + + " * @since Log4j-2.4%n" + + " */%n" + + " public void methodName(final Supplier<?> msgSupplier) {%n" + + " logger.logIfEnabled(FQCN, CUS
<TRUNCATED>