Class Log4JToL4TLoggerContext

java.lang.Object
dev.pfaff.log4truth.compat.log4j.Log4JToL4TLoggerContext
All Implemented Interfaces:
org.apache.logging.log4j.spi.LoggerContext

public final class Log4JToL4TLoggerContext extends Object implements org.apache.logging.log4j.spi.LoggerContext
  • Field Summary

    Fields inherited from interface org.apache.logging.log4j.spi.LoggerContext

    EMPTY_ARRAY
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.apache.logging.log4j.spi.ExtendedLogger
     
    org.apache.logging.log4j.spi.ExtendedLogger
    getLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
     
    boolean
     
    boolean
    hasLogger(String name, Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
     
    boolean
    hasLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.apache.logging.log4j.spi.LoggerContext

    getLogger, getLogger, getLoggerRegistry, getObject, putObject, putObjectIfAbsent, removeObject, removeObject
  • Method Details

    • getExternalContext

      public Object getExternalContext()
      Specified by:
      getExternalContext in interface org.apache.logging.log4j.spi.LoggerContext
    • getLogger

      public org.apache.logging.log4j.spi.ExtendedLogger getLogger(String name)
      Specified by:
      getLogger in interface org.apache.logging.log4j.spi.LoggerContext
    • getLogger

      public org.apache.logging.log4j.spi.ExtendedLogger getLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
      Specified by:
      getLogger in interface org.apache.logging.log4j.spi.LoggerContext
    • hasLogger

      public boolean hasLogger(String name)
      Specified by:
      hasLogger in interface org.apache.logging.log4j.spi.LoggerContext
    • hasLogger

      public boolean hasLogger(String name, Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
      Specified by:
      hasLogger in interface org.apache.logging.log4j.spi.LoggerContext
    • hasLogger

      public boolean hasLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
      Specified by:
      hasLogger in interface org.apache.logging.log4j.spi.LoggerContext