Package org.apache.logging.log4j.jul
Class CoreLoggerAdapter
- java.lang.Object
-
- org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger>
-
- org.apache.logging.log4j.jul.AbstractLoggerAdapter
-
- org.apache.logging.log4j.jul.CoreLoggerAdapter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LoggerAdapter<Logger>
,LoggerContextShutdownAware
public class CoreLoggerAdapter extends AbstractLoggerAdapter
Logger
registry implementation that uses log4j-core.- Since:
- 2.1
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
registry
-
-
Constructor Summary
Constructors Constructor Description CoreLoggerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logger
newLogger(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
-
-
-
-
Method Detail
-
newLogger
protected Logger newLogger(String name, LoggerContext context)
Description copied from class:AbstractLoggerAdapter
Creates a new named logger for a givenLoggerContext
.- Specified by:
newLogger
in classAbstractLoggerAdapter<Logger>
- Parameters:
name
- the name of the logger to createcontext
- the LoggerContext this logger will be associated with- Returns:
- the new named logger
-
-