Package com.randomnoun.common.log4j2
Class LogEventAdapter
- java.lang.Object
-
- org.apache.log4j.spi.LoggingEvent
-
- com.randomnoun.common.log4j2.LogEventAdapter
-
public class LogEventAdapter extends org.apache.log4j.spi.LoggingEvent
Converts a Log4j 2 LogEvent into the components needed by a Log4j 1.x LoggingEvent. This class requires Log4j 2.
-
-
Constructor Summary
Constructors Constructor Description LogEventAdapter(org.apache.logging.log4j.core.LogEvent event)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.log4j.Level
getLevel(org.apache.logging.log4j.core.LogEvent event)
Return the level of this event.-
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, removeProperty, setProperty
-
-
-
-
Constructor Detail
-
LogEventAdapter
public LogEventAdapter(org.apache.logging.log4j.core.LogEvent event)
-
-
Method Detail
-
getLevel
public static org.apache.log4j.Level getLevel(org.apache.logging.log4j.core.LogEvent event)
Return the level of this event. Use this form instead of directly accessing thelevel
field.
-
-