public class LogEventWrapper extends Object implements LogEvent
| Constructor and Description |
|---|
LogEventWrapper(LoggingEvent event) |
| Modifier and Type | Method and Description |
|---|---|
ReadOnlyStringMap |
getContextData() |
Map<String,String> |
getContextMap() |
ThreadContext.ContextStack |
getContextStack() |
Instant |
getInstant() |
Level |
getLevel() |
String |
getLoggerFqcn() |
String |
getLoggerName() |
Marker |
getMarker() |
Message |
getMessage() |
long |
getNanoTime() |
StackTraceElement |
getSource() |
long |
getThreadId() |
String |
getThreadName() |
int |
getThreadPriority() |
Throwable |
getThrown() |
ThrowableProxy |
getThrownProxy() |
long |
getTimeMillis() |
boolean |
isEndOfBatch() |
boolean |
isIncludeLocation() |
void |
setEndOfBatch(boolean endOfBatch) |
void |
setIncludeLocation(boolean locationRequired) |
LogEvent |
toImmutable() |
public LogEventWrapper(LoggingEvent event)
public LogEvent toImmutable()
toImmutable in interface LogEventpublic Map<String,String> getContextMap()
getContextMap in interface LogEventpublic ReadOnlyStringMap getContextData()
getContextData in interface LogEventpublic ThreadContext.ContextStack getContextStack()
getContextStack in interface LogEventpublic String getLoggerFqcn()
getLoggerFqcn in interface LogEventpublic String getLoggerName()
getLoggerName in interface LogEventpublic Message getMessage()
getMessage in interface LogEventpublic long getTimeMillis()
getTimeMillis in interface LogEventpublic Instant getInstant()
getInstant in interface LogEventpublic StackTraceElement getSource()
public String getThreadName()
getThreadName in interface LogEventpublic long getThreadId()
getThreadId in interface LogEventpublic int getThreadPriority()
getThreadPriority in interface LogEventpublic ThrowableProxy getThrownProxy()
getThrownProxy in interface LogEventpublic boolean isEndOfBatch()
isEndOfBatch in interface LogEventpublic boolean isIncludeLocation()
isIncludeLocation in interface LogEventpublic void setEndOfBatch(boolean endOfBatch)
setEndOfBatch in interface LogEventpublic void setIncludeLocation(boolean locationRequired)
setIncludeLocation in interface LogEventpublic long getNanoTime()
getNanoTime in interface LogEventCopyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.