org.apache.logging.log4j.status
Class StatusData

java.lang.Object
  extended by org.apache.logging.log4j.status.StatusData

public class StatusData
extends Object

The Status data.


Constructor Summary
StatusData(StackTraceElement caller, Level level, Message msg, Throwable t)
          Creates the StatusData object.
 
Method Summary
 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.
 Throwable getThrowable()
          Returns the Throwable associated with the event.
 long getTimestamp()
          Returns the event's timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusData

public StatusData(StackTraceElement caller,
                  Level level,
                  Message msg,
                  Throwable t)
Creates the StatusData object.

Parameters:
caller - The method that created the event.
level - The logging level.
msg - The message String.
t - The Error or Exception that occurred.
Method Detail

getTimestamp

public long getTimestamp()
Returns the event's timestamp.

Returns:
The event's timestamp.

getStackTraceElement

public StackTraceElement getStackTraceElement()
Returns the StackTraceElement for the method that created the event.

Returns:
The StackTraceElement.

getLevel

public Level getLevel()
Returns the logging level for the event.

Returns:
The logging level.

getMessage

public Message getMessage()
Returns the message associated with the event.

Returns:
The message associated with the event.

getThrowable

public Throwable getThrowable()
Returns the Throwable associated with the event.

Returns:
The Throwable associated with the event.

getFormattedStatus

public String getFormattedStatus()
Formats the StatusData for viewing.

Returns:
The formatted status data as a String.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.