Package org.apache.log4j.bridge
Class LogEventWrapper
java.lang.Object
org.apache.log4j.bridge.LogEventWrapper
- All Implemented Interfaces:
Serializable,LogEvent
Exposes a Log4j 1 logging event as a Log4j 2 LogEvent.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()longlongintlongbooleanbooleanvoidsetEndOfBatch(boolean endOfBatch) voidsetIncludeLocation(boolean locationRequired)
-
Constructor Details
-
LogEventWrapper
-
-
Method Details
-
toImmutable
- Specified by:
toImmutablein interfaceLogEvent
-
getContextMap
- Specified by:
getContextMapin interfaceLogEvent
-
getContextData
- Specified by:
getContextDatain interfaceLogEvent
-
getContextStack
- Specified by:
getContextStackin interfaceLogEvent
-
getLoggerFqcn
- Specified by:
getLoggerFqcnin interfaceLogEvent
-
getLevel
-
getLoggerName
- Specified by:
getLoggerNamein interfaceLogEvent
-
getMarker
-
getMessage
- Specified by:
getMessagein interfaceLogEvent
-
getTimeMillis
public long getTimeMillis()- Specified by:
getTimeMillisin interfaceLogEvent
-
getInstant
- Specified by:
getInstantin interfaceLogEvent
-
getSource
-
getThreadName
- Specified by:
getThreadNamein interfaceLogEvent
-
getThreadId
public long getThreadId()- Specified by:
getThreadIdin interfaceLogEvent
-
getThreadPriority
public int getThreadPriority()- Specified by:
getThreadPriorityin interfaceLogEvent
-
getThrown
-
getThrownProxy
- Specified by:
getThrownProxyin interfaceLogEvent
-
isEndOfBatch
public boolean isEndOfBatch()- Specified by:
isEndOfBatchin interfaceLogEvent
-
isIncludeLocation
public boolean isIncludeLocation()- Specified by:
isIncludeLocationin interfaceLogEvent
-
setEndOfBatch
public void setEndOfBatch(boolean endOfBatch) - Specified by:
setEndOfBatchin interfaceLogEvent
-
setIncludeLocation
public void setIncludeLocation(boolean locationRequired) - Specified by:
setIncludeLocationin interfaceLogEvent
-
getNanoTime
public long getNanoTime()- Specified by:
getNanoTimein interfaceLogEvent
-