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