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 LogEvent
public Map<String,String> getContextMap()
getContextMap
in interface LogEvent
public ReadOnlyStringMap getContextData()
getContextData
in interface LogEvent
public ThreadContext.ContextStack getContextStack()
getContextStack
in interface LogEvent
public String getLoggerFqcn()
getLoggerFqcn
in interface LogEvent
public String getLoggerName()
getLoggerName
in interface LogEvent
public Message getMessage()
getMessage
in interface LogEvent
public long getTimeMillis()
getTimeMillis
in interface LogEvent
public Instant getInstant()
getInstant
in interface LogEvent
public StackTraceElement getSource()
public String getThreadName()
getThreadName
in interface LogEvent
public long getThreadId()
getThreadId
in interface LogEvent
public int getThreadPriority()
getThreadPriority
in interface LogEvent
public ThrowableProxy getThrownProxy()
getThrownProxy
in interface LogEvent
public boolean isEndOfBatch()
isEndOfBatch
in interface LogEvent
public boolean isIncludeLocation()
isIncludeLocation
in interface LogEvent
public void setEndOfBatch(boolean endOfBatch)
setEndOfBatch
in interface LogEvent
public void setIncludeLocation(boolean locationRequired)
setIncludeLocation
in interface LogEvent
public long getNanoTime()
getNanoTime
in interface LogEvent
Copyright © 1999-2020 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.