Package org.apache.logging.log4j.jpl
Class Log4jSystemLoggerAdapter
- java.lang.Object
-
- org.apache.logging.log4j.spi.AbstractLoggerAdapter<System.Logger>
-
- org.apache.logging.log4j.jpl.Log4jSystemLoggerAdapter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LoggerAdapter<System.Logger>
,LoggerContextShutdownAware
public class Log4jSystemLoggerAdapter extends AbstractLoggerAdapter<System.Logger>
System.Logger
registry implementation using just log4j-api.- Since:
- 2.14
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
registry
-
-
Constructor Summary
Constructors Constructor Description Log4jSystemLoggerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LoggerContext
getContext()
protected System.Logger
newLogger(String name, LoggerContext context)
-
Methods inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
close, contextShutdown, getContext, getLogger, getLoggerContexts, getLoggersInContext
-
-
-
-
Method Detail
-
newLogger
protected System.Logger newLogger(String name, LoggerContext context)
- Specified by:
newLogger
in classAbstractLoggerAdapter<System.Logger>
-
getContext
protected LoggerContext getContext()
- Specified by:
getContext
in classAbstractLoggerAdapter<System.Logger>
-
-