Package com.iizix
Class LogEntry
java.lang.Object
com.iizix.LogEntry
The log entry.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionfinal int
Level of the event.final String
The logger name.final String
The event message with potential "LF" characters for line breaks (no CR/LF, just LF).final String
The originator of the event.final String
The Thread.toString() of the event.final long
Time stamp of the event.Constructor Summary
Method Summary
Field Details
timeStamp
public final long timeStampTime stamp of the event.level
public final int levelLevel of the event.loggerName
The logger name.originator
The originator of the event.thread
The Thread.toString() of the event.msg
The event message with potential "LF" characters for line breaks (no CR/LF, just LF).
Constructor Details
LogEntry
public LogEntry(long timeStamp, int level, String loggerName, String originator, String thread, String msg) Called when an event is logged.- Parameters:
timeStamp
- the time stamp of the event.level
- the log level 1-7 (SEVERE-FINEST).loggerName
- name of the logger.originator
- the originator of the event,null
if not defined.thread
- the thread ID.msg
- the message to be logged.- See Also:
Method Details
toString
Formats the log entry as standard for printing to e.g. file or console.