|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.go.trove.log.LogEvent
LogEvent captures information that should be logged. LogEvents are one of four types: debug, info, warn or error. All LogEvents have a timestamp for when the event occurred and a reference to the thread that created it. Most have an embedded message, and some have an embedded exception.
| Field Summary | |
static int |
DEBUG_TYPE
Debug type of LogEvent |
static int |
ERROR_TYPE
Error type of LogEvent |
static int |
INFO_TYPE
Info type of LogEvent |
static int |
WARN_TYPE
Warn type of LogEvent |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
LogEvent(Log log,
int type,
java.lang.String message)
|
|
LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Thread thread)
|
|
LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Thread thread,
java.util.Date timestamp)
|
|
LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Throwable throwable)
|
|
LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Throwable throwable,
java.lang.Thread thread,
java.util.Date timestamp)
|
|
LogEvent(Log log,
int type,
java.lang.Throwable throwable)
|
|
LogEvent(Log log,
int type,
java.lang.Throwable throwable,
java.lang.Thread thread)
|
|
LogEvent(Log log,
int type,
java.lang.Throwable throwable,
java.lang.Thread thread,
java.util.Date timestamp)
|
|
| Method Summary | |
java.lang.Throwable |
getException()
Returns null if there is no exception logged. |
java.lang.String |
getExceptionStackTrace()
Returns null if there is no exception logged. |
Log |
getLogSource()
|
java.lang.String |
getMessage()
Message may be null. |
java.lang.Thread |
getThread()
Returns the thread that created this event, which may be null if this LogEvent was deserialized or the thread has been reclaimed. |
java.lang.String |
getThreadName()
Returns the name of the thread that created this event. |
java.util.Date |
getTimestamp()
Returns the date and time of this event. |
int |
getType()
Returns the type of this LogEvent, which matches one of the defined type constants. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEBUG_TYPE
public static final int INFO_TYPE
public static final int WARN_TYPE
public static final int ERROR_TYPE
| Constructor Detail |
public LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Throwable throwable,
java.lang.Thread thread,
java.util.Date timestamp)
public LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Thread thread,
java.util.Date timestamp)
public LogEvent(Log log,
int type,
java.lang.Throwable throwable,
java.lang.Thread thread,
java.util.Date timestamp)
public LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Thread thread)
public LogEvent(Log log,
int type,
java.lang.Throwable throwable,
java.lang.Thread thread)
public LogEvent(Log log,
int type,
java.lang.String message,
java.lang.Throwable throwable)
public LogEvent(Log log,
int type,
java.lang.String message)
public LogEvent(Log log,
int type,
java.lang.Throwable throwable)
| Method Detail |
public Log getLogSource()
public int getType()
public java.util.Date getTimestamp()
public java.lang.String getMessage()
public java.lang.Throwable getException()
public java.lang.String getExceptionStackTrace()
public java.lang.String getThreadName()
public java.lang.Thread getThread()
public java.lang.String toString()
toString in class java.util.EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||