Package com.linkedin.alpini.log
Class FastLogContext
- java.lang.Object
-
- com.linkedin.alpini.log.FastLogContext
-
- All Implemented Interfaces:
org.apache.logging.log4j.spi.LoggerContext
public final class FastLogContext extends java.lang.Object implements org.apache.logging.log4j.spi.LoggerContext
-
-
Constructor Summary
Constructors Constructor Description FastLogContext(FastLogMBean fastLog, org.apache.logging.log4j.spi.LoggerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getExternalContext()
FastLogger
getLogger(java.lang.String name)
FastLogger
getLogger(java.lang.String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
FastLogMBean
getManagementMBean()
boolean
hasLogger(java.lang.String name)
boolean
hasLogger(java.lang.String name, java.lang.Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
boolean
hasLogger(java.lang.String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
boolean
isDebugEnabled()
boolean
isTraceEnabled()
-
-
-
Constructor Detail
-
FastLogContext
public FastLogContext(@Nonnull FastLogMBean fastLog, @Nonnull org.apache.logging.log4j.spi.LoggerContext context)
-
-
Method Detail
-
getManagementMBean
public FastLogMBean getManagementMBean()
-
getExternalContext
public java.lang.Object getExternalContext()
- Specified by:
getExternalContext
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
getLogger
public FastLogger getLogger(java.lang.String name)
- Specified by:
getLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
getLogger
public FastLogger getLogger(java.lang.String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
- Specified by:
getLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(java.lang.String name)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(java.lang.String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(java.lang.String name, java.lang.Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
isDebugEnabled
public boolean isDebugEnabled()
-
isTraceEnabled
public boolean isTraceEnabled()
-
-