public class LoggingEvent
extends java.lang.Object
Constructor and Description |
---|
LoggingEvent() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFQNOfLoggerClass() |
Level |
getLevel()
Return the level of this event.
|
LocationInfo |
getLocationInformation()
Set the location information for this logging event.
|
Category |
getLogger()
Gets the logger of the event.
|
java.lang.String |
getLoggerName()
Return the name of the logger.
|
java.lang.Object |
getMDC(java.lang.String key) |
void |
getMDCCopy()
Obtain a copy of this thread's MDC prior to serialization or
asynchronous logging.
|
java.lang.Object |
getMessage()
Return the message for this logging event.
|
java.lang.String |
getNDC() |
java.util.Map |
getProperties() |
java.lang.String |
getProperty(java.lang.String key) |
java.util.Set |
getPropertyKeySet() |
java.lang.String |
getRenderedMessage() |
static long |
getStartTime()
Returns the time when the application started, in milliseconds
elapsed since 01.01.1970.
|
java.lang.String |
getThreadName() |
ThrowableInformation |
getThrowableInformation()
Returns the throwable information contained within this
event.
|
java.lang.String[] |
getThrowableStrRep()
Return this event's throwable's string[] representaion.
|
long |
getTimeStamp() |
java.lang.Object |
removeProperty(java.lang.String propName) |
void |
setProperty(java.lang.String propName,
java.lang.String propValue) |
public LocationInfo getLocationInformation()
public Level getLevel()
level
field.public java.lang.String getLoggerName()
categoryName
field.public java.lang.String getFQNOfLoggerClass()
public final long getTimeStamp()
public Category getLogger()
public java.lang.Object getMessage()
Before serialization, the returned object is the message passed by the user to generate the logging event. After serialization, the returned value equals the String form of the message possibly after object rendering.
public java.lang.String getNDC()
public java.lang.Object getMDC(java.lang.String key)
public void getMDCCopy()
public java.lang.String getRenderedMessage()
public static long getStartTime()
public java.lang.String getThreadName()
public ThrowableInformation getThrowableInformation()
null
if there is no such information.
Note that the Throwable
object contained within a
ThrowableInformation
does not survive serialization.
public java.lang.String[] getThrowableStrRep()
public void setProperty(java.lang.String propName, java.lang.String propValue)
public java.lang.String getProperty(java.lang.String key)
public java.util.Set getPropertyKeySet()
public java.util.Map getProperties()
public java.lang.Object removeProperty(java.lang.String propName)