|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.qfs.lib.log.LogEntry
A LogEntry is a container for the elements of a log message.
Constructor Summary | |
LogEntry(int level,
long timestamp,
java.lang.String thread,
java.lang.String clazz,
java.lang.String method,
java.lang.String message)
Construct a new LogEntry. |
Method Summary | |
java.lang.String |
getClazz()
|
int |
getLevel()
|
java.lang.String |
getMessage()
|
java.lang.String |
getMethod()
|
java.lang.String |
getThread()
|
long |
getTimestamp()
|
void |
setClazz(java.lang.String clazz)
Set the clazz of the message. |
void |
setLevel(int level)
Set the level of the message. |
void |
setMessage(java.lang.String message)
Set the message. |
void |
setMethod(java.lang.String method)
Set the method of the message. |
void |
setThread(java.lang.String thread)
Set the thread of the message. |
void |
setTimestamp(long timestamp)
Set the timestamp of the message. |
java.lang.String |
toString()
Override the toString method to return a formatted String containing all the relevant data of the message. |
java.lang.String |
toString(java.text.DateFormat format)
Deprecated. Please use the LogFormat interface to
customize LogEntry output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LogEntry(int level, long timestamp, java.lang.String thread, java.lang.String clazz, java.lang.String method, java.lang.String message)
level
- The log level of the entry.timestamp
- The time of the entry in milliseconds.thread
- The thread that sent the message.clazz
- The class of the sender of the message.method
- The method that sent the message.message
- The message itself.Method Detail |
public final int getLevel()
public final void setLevel(int level)
level
- The level to set.public final java.lang.String getThread()
public final void setThread(java.lang.String thread)
thread
- The thread to set.public final long getTimestamp()
public final void setTimestamp(long timestamp)
timestamp
- The timestamp to set.public final java.lang.String getClazz()
public final void setClazz(java.lang.String clazz)
clazz
- The clazz to set.public final java.lang.String getMethod()
public final void setMethod(java.lang.String method)
method
- The method to set.public final java.lang.String getMessage()
public final void setMessage(java.lang.String message)
message
- The message to set.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.text.DateFormat format)
LogFormat
interface to
customize LogEntry output.
format
- The DateFormat to use.
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |