Class Log4j2LoggerFactory

java.lang.Object
org.apache.logging.log4j.spi.AbstractLoggerAdapter<org.seppiko.glf.api.Logger>
org.seppiko.glf.log4j2.Log4j2LoggerFactory
All Implemented Interfaces:
Closeable, 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

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

    registry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.logging.log4j.spi.LoggerContext
     
    protected org.seppiko.glf.api.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()
  • Method Details

    • newLogger

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

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