|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmomelog.LogEvent
public class LogEvent
Class representing logging event. It contains following readonly properties:
category
- category of logger generated this logging
event.message
- message of this logging event.error
- error of this logging event.timestamp
- time, when this logging event was generated,
as number of milliseconds since some base time point. By default, base time
point is set to time of Logger
class loading. It can be set to now by
invoking Logger.resetBaseTime()
static method.
Note: Only timestamps of logging events generated, after above method returns, will be relative to new base time point.
threadname
- name of thread, in which this logging event
was generated. As returned from Thread.getName()
method.All of the above properties are read only. They can be obtained by respective getters.
Method Summary | |
---|---|
String |
getCategory()
Returns category of logger generated this logging event. |
String |
getMessage()
Returns message of this logging event. |
String |
getThreadName()
Returns name of thread, in which this logging event was generated (as returned from Thread.getName() method). |
Throwable |
getThrowable()
Returns error of this logging event. |
long |
getTimestamp()
Returns long integer indicating time of this logging event generation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getCategory()
public Throwable getThrowable()
public String getMessage()
public long getTimestamp()
LogEvent
generation time. By default, base time point is set to
time of Logger
class loading. It can be set to now by invoking
Logger.resetBaseTime()
static method.
public String getThreadName()
Thread.getName()
method).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |