|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.LogEvent
public class LogEvent
A basic log event.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
LogEvent(java.lang.String pMessage)
Constructs a LogEvent with the given message. |
|
LogEvent(java.lang.String pMessage,
java.lang.String pOriginator)
Constructs a LogEvent with the given message and originator |
|
LogEvent(java.lang.String pMessage,
java.lang.String pOriginator,
java.lang.Throwable pThrowable)
Constructs a LogEvent with the given message, originator and throwable |
|
LogEvent(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Constructs a LogEvent with the given message and throwable |
Method Summary | |
---|---|
java.util.Date |
getDateTimeStamp()
Returns property DateTimeStamp |
java.lang.String |
getIdentifier()
Returns property Identifier |
java.lang.String |
getMessage()
Returns property Message |
java.lang.String |
getNullObjectReplacement()
Returns property NullObjectReplacement |
java.lang.String |
getOriginator()
Returns property Originator |
java.lang.Throwable |
getThrowable()
Returns property Throwable |
long |
getTimeStamp()
Returns property TimeStamp |
java.lang.String |
getTokenSeperator()
Returns property TokenSeperator |
void |
setNullObjectReplacement(java.lang.String pNullObjectReplacement)
Sets property NullObjectReplacement |
void |
setTokenSeperator(java.lang.String pTokenSeperator)
Sets property TokenSeperator |
java.lang.String |
toString()
Returns the log event as a String in the following format: |
java.lang.StringBuffer |
toStringBuffer()
Returns the log event as a StringBuffer in the following format: |
void |
writeLogLinePrefix(java.io.PrintStream pOut)
Writes the prefix that will be used at the beginning of each line in the log message. |
void |
writeLogMessage(java.io.PrintStream pOut)
Writes the log message to the specified print stream. |
void |
writeOriginatorPrefix(java.io.PrintStream pOut)
Writes the log message to the specified print stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public LogEvent(java.lang.String pMessage)
public LogEvent(java.lang.String pMessage, java.lang.String pOriginator)
public LogEvent(java.lang.String pMessage, java.lang.Throwable pThrowable)
public LogEvent(java.lang.String pMessage, java.lang.String pOriginator, java.lang.Throwable pThrowable)
Method Detail |
---|
public void setTokenSeperator(java.lang.String pTokenSeperator)
public java.lang.String getTokenSeperator()
public void setNullObjectReplacement(java.lang.String pNullObjectReplacement)
public java.lang.String getNullObjectReplacement()
public java.lang.String getIdentifier()
public long getTimeStamp()
public java.util.Date getDateTimeStamp()
public java.lang.String getOriginator()
public java.lang.String getMessage()
public java.lang.Throwable getThrowable()
public void writeLogLinePrefix(java.io.PrintStream pOut)
public void writeOriginatorPrefix(java.io.PrintStream pOut)
public void writeLogMessage(java.io.PrintStream pOut)
public java.lang.StringBuffer toStringBuffer()
id date millis originator message throwable
(tab delimited instead of space delimited). If the originator or message are not set, the NullObjectReplacement property will be used.
public java.lang.String toString()
id date millis originator message throwable
(tab delimited instead of space delimited). If the originator or message are not set, the NullObjectReplacement property will be used.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |