org.erights.e.develop.trace
Class TraceMessage

java.lang.Object
  |
  +--org.erights.e.develop.trace.TraceMessage

class TraceMessage
extends Object


Field Summary
 Date date
          The Date at which the method was sent (approximately).
 Exception exception
          An exception is generated when the message is created.
 int level
          The level ("error", "debug", etc.) at which the message was sent.
 String message
          The text itself.
 TraceMessage next
          The next TraceMessage in a linked list.
 Object object
          An arbitrary object may be attached to the message.
 String subsystem
          The subsystem is the larger body of code the message applies to.
 
Constructor Summary
(package private) TraceMessage()
           
 
Method Summary
 String toString()
          Default string representation displays all fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subsystem

public String subsystem
The subsystem is the larger body of code the message applies to.


date

public Date date
The Date at which the method was sent (approximately). The Date is not attached to the message until the message leaves the vat. (The vat does not let you find out the current time.)


level

public int level
The level ("error", "debug", etc.) at which the message was sent. This is distinct from the priority threshold that determines whether the message should be sent.


message

public String message
The text itself.


object

public Object object
An arbitrary object may be attached to the message. They are usually printed with toString(), but Throwables are handled specially.


exception

public final Exception exception
An exception is generated when the message is created. This is used to discover the class name, method name, file name, and line number.


next

public TraceMessage next
The next TraceMessage in a linked list.

Constructor Detail

TraceMessage

TraceMessage()
Method Detail

toString

public String toString()
Default string representation displays all fields.

Overrides:
toString in class Object
Returns:
a string representation of the object.


comments?