Package org.apache.logging.log4j.jul
Class ApiLoggerAdapter
java.lang.Object
org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger>
org.apache.logging.log4j.jul.AbstractLoggerAdapter
org.apache.logging.log4j.jul.ApiLoggerAdapter
- All Implemented Interfaces:
Closeable,AutoCloseable,LoggerAdapter<Logger>,LoggerContextShutdownAware
Logger registry implementation using just log4j-api. This is the fallback registry used when log4j-core is
not available.- Since:
- 2.1
-
Field Summary
FieldsFields inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LoggernewLogger(String name, LoggerContext context) Creates a new named logger for a givenLoggerContext.Methods inherited from class org.apache.logging.log4j.jul.AbstractLoggerAdapter
getContextMethods inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
close, contextShutdown, getContext, getLogger, getLoggerContexts, getLoggersInContext
-
Field Details
-
MESSAGE_FACTORY
-
-
Constructor Details
-
ApiLoggerAdapter
public ApiLoggerAdapter()
-
-
Method Details
-
newLogger
Description copied from class:AbstractLoggerAdapterCreates a new named logger for a givenLoggerContext.- Specified by:
newLoggerin classAbstractLoggerAdapter<Logger>- Parameters:
name- the name of the logger to createcontext- the LoggerContext this logger will be associated with- Returns:
- the new named logger
-