Class Log4j2LoggerFactory

java.lang.Object
org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger>
org.seppiko.glf.log4j2.Log4j2LoggerFactory
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.logging.log4j.spi.LoggerAdapter<Logger>, org.apache.logging.log4j.spi.LoggerContextShutdownAware, ILoggerFactory

public class Log4j2LoggerFactory extends org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger> implements ILoggerFactory
Log4j 2.x Logger Factory registered
Author:
Leonard Woo
  • Field Summary

    Fields inherited from class org.apache.logging.log4j.spi.AbstractLoggerAdapter

    registry
  • Constructor Summary

    Constructors
    Constructor
    Description
    constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.logging.log4j.spi.LoggerContext
     
    protected Logger
    newLogger(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.seppiko.glf.api.ILoggerFactory

    getLogger
  • Constructor Details

    • Log4j2LoggerFactory

      public Log4j2LoggerFactory(Log4j2MarkerFactory markerFactory)
      constructor
      Parameters:
      markerFactory - Log4j2 marker factory instance
  • Method Details

    • newLogger

      protected Logger newLogger(String name, org.apache.logging.log4j.spi.LoggerContext loggerContext)
      Specified by:
      newLogger in class org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger>
    • getContext

      protected org.apache.logging.log4j.spi.LoggerContext getContext()
      Specified by:
      getContext in class org.apache.logging.log4j.spi.AbstractLoggerAdapter<Logger>