Package org.seppiko.glf.log4j2
Class Log4j2LoggerFactory
java.lang.Object
org.apache.logging.log4j.spi.AbstractLoggerAdapter<org.seppiko.glf.api.Logger>
org.seppiko.glf.log4j2.Log4j2LoggerFactory
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.logging.log4j.spi.LoggerAdapter<org.seppiko.glf.api.Logger>,org.apache.logging.log4j.spi.LoggerContextShutdownAware,org.seppiko.glf.api.ILoggerFactory
public class Log4j2LoggerFactory
extends org.apache.logging.log4j.spi.AbstractLoggerAdapter<org.seppiko.glf.api.Logger>
implements org.seppiko.glf.api.ILoggerFactory
Log4j 2.x Logger Factory registered
- Author:
- Leonard Woo
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Log4j2LoggerFactory() -
Method Summary
Modifier and Type Method Description protected org.apache.logging.log4j.spi.LoggerContextgetContext()protected org.seppiko.glf.api.LoggernewLogger(java.lang.String name, org.apache.logging.log4j.spi.LoggerContext loggerContext)Methods inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter
close, contextShutdown, getContext, getLogger, getLoggerContexts, getLoggersInContext
-
Constructor Details
-
Log4j2LoggerFactory
public Log4j2LoggerFactory()
-
-
Method Details
-
newLogger
protected org.seppiko.glf.api.Logger newLogger(java.lang.String name, org.apache.logging.log4j.spi.LoggerContext loggerContext)- Specified by:
newLoggerin classorg.apache.logging.log4j.spi.AbstractLoggerAdapter<org.seppiko.glf.api.Logger>
-
getContext
protected org.apache.logging.log4j.spi.LoggerContext getContext()- Specified by:
getContextin classorg.apache.logging.log4j.spi.AbstractLoggerAdapter<org.seppiko.glf.api.Logger>
-