Package org.djutils.logger
Class CategoryLogger.ConsoleAppenderFactory
java.lang.Object
org.djutils.logger.CategoryLogger.ConsoleAppenderFactory
- All Implemented Interfaces:
CategoryLogger.CategoryAppenderFactory
- Enclosing class:
- CategoryLogger
public static final class CategoryLogger.ConsoleAppenderFactory
extends Object
implements CategoryLogger.CategoryAppenderFactory
Console appender factory (uses the category's pattern).
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate the factory for the console appender. -
Method Summary
Modifier and TypeMethodDescriptionch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>create(String id, LogCategory category, String messageFormat, ch.qos.logback.classic.LoggerContext ctx) Create an appender instance for a category.id()Return the id to be used for later removal.
-
Constructor Details
-
ConsoleAppenderFactory
Instantiate the factory for the console appender.- Parameters:
id- the id to be used for later removal
-
-
Method Details
-
id
Description copied from interface:CategoryLogger.CategoryAppenderFactoryReturn the id to be used for later removal.- Specified by:
idin interfaceCategoryLogger.CategoryAppenderFactory- Returns:
- the id to be used for later removal
-
create
public ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> create(String id, LogCategory category, String messageFormat, ch.qos.logback.classic.LoggerContext ctx) Description copied from interface:CategoryLogger.CategoryAppenderFactoryCreate an appender instance for a category.- Specified by:
createin interfaceCategoryLogger.CategoryAppenderFactory- Parameters:
id- the id to be used for later removalcategory- the logging categorymessageFormat- the pattern to use for printing the log messagectx- the context to use- Returns:
- an appender with the above features
-