public class LogEventWrapper extends Object implements org.apache.logging.log4j.core.LogEvent
Constructor and Description |
---|
LogEventWrapper(LoggingEvent event) |
Modifier and Type | Method and Description |
---|---|
org.apache.logging.log4j.util.ReadOnlyStringMap |
getContextData() |
Map<String,String> |
getContextMap() |
org.apache.logging.log4j.ThreadContext.ContextStack |
getContextStack() |
org.apache.logging.log4j.core.time.Instant |
getInstant() |
org.apache.logging.log4j.Level |
getLevel() |
String |
getLoggerFqcn() |
String |
getLoggerName() |
org.apache.logging.log4j.Marker |
getMarker() |
org.apache.logging.log4j.message.Message |
getMessage() |
long |
getNanoTime() |
StackTraceElement |
getSource() |
long |
getThreadId() |
String |
getThreadName() |
int |
getThreadPriority() |
Throwable |
getThrown() |
org.apache.logging.log4j.core.impl.ThrowableProxy |
getThrownProxy() |
long |
getTimeMillis() |
boolean |
isEndOfBatch() |
boolean |
isIncludeLocation() |
void |
setEndOfBatch(boolean endOfBatch) |
void |
setIncludeLocation(boolean locationRequired) |
org.apache.logging.log4j.core.LogEvent |
toImmutable() |
public LogEventWrapper(LoggingEvent event)
public org.apache.logging.log4j.core.LogEvent toImmutable()
toImmutable
in interface org.apache.logging.log4j.core.LogEvent
public Map<String,String> getContextMap()
getContextMap
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.util.ReadOnlyStringMap getContextData()
getContextData
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.ThreadContext.ContextStack getContextStack()
getContextStack
in interface org.apache.logging.log4j.core.LogEvent
public String getLoggerFqcn()
getLoggerFqcn
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.Level getLevel()
getLevel
in interface org.apache.logging.log4j.core.LogEvent
public String getLoggerName()
getLoggerName
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.Marker getMarker()
getMarker
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.message.Message getMessage()
getMessage
in interface org.apache.logging.log4j.core.LogEvent
public long getTimeMillis()
getTimeMillis
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.core.time.Instant getInstant()
getInstant
in interface org.apache.logging.log4j.core.LogEvent
public StackTraceElement getSource()
getSource
in interface org.apache.logging.log4j.core.LogEvent
public String getThreadName()
getThreadName
in interface org.apache.logging.log4j.core.LogEvent
public long getThreadId()
getThreadId
in interface org.apache.logging.log4j.core.LogEvent
public int getThreadPriority()
getThreadPriority
in interface org.apache.logging.log4j.core.LogEvent
public Throwable getThrown()
getThrown
in interface org.apache.logging.log4j.core.LogEvent
public org.apache.logging.log4j.core.impl.ThrowableProxy getThrownProxy()
getThrownProxy
in interface org.apache.logging.log4j.core.LogEvent
public boolean isEndOfBatch()
isEndOfBatch
in interface org.apache.logging.log4j.core.LogEvent
public boolean isIncludeLocation()
isIncludeLocation
in interface org.apache.logging.log4j.core.LogEvent
public void setEndOfBatch(boolean endOfBatch)
setEndOfBatch
in interface org.apache.logging.log4j.core.LogEvent
public void setIncludeLocation(boolean locationRequired)
setIncludeLocation
in interface org.apache.logging.log4j.core.LogEvent
public long getNanoTime()
getNanoTime
in interface org.apache.logging.log4j.core.LogEvent
Copyright © 1999-1969 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.