public class StatusData extends Object implements Serializable
Constructor and Description |
---|
StatusData(StackTraceElement caller,
Level level,
Message msg,
Throwable t,
String threadName)
Creates the StatusData object.
|
Modifier and Type | Method and Description |
---|---|
String |
getFormattedStatus()
Formats the StatusData for viewing.
|
Level |
getLevel()
Returns the logging level for the event.
|
Message |
getMessage()
Returns the message associated with the event.
|
StackTraceElement |
getStackTraceElement()
Returns the StackTraceElement for the method that created the event.
|
String |
getThreadName() |
Throwable |
getThrowable()
Returns the Throwable associated with the event.
|
long |
getTimestamp()
Returns the event's timestamp.
|
public StatusData(StackTraceElement caller, Level level, Message msg, Throwable t, String threadName)
caller
- The method that created the event.level
- The logging level.msg
- The message String.t
- The Error or Exception that occurred.threadName
- The thread namepublic long getTimestamp()
public StackTraceElement getStackTraceElement()
public Level getLevel()
public Message getMessage()
public String getThreadName()
public Throwable getThrowable()
public String getFormattedStatus()
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.