org.apache.java.io
Class LogRecord
java.lang.Object
|
+--org.apache.java.io.LogRecord
- public class LogRecord
- extends java.lang.Object
Class to store the logging information until it gets processed by the
logger thread.
Possible enhancements:
- Name of the thread which issued the log message.
- Name of the object on whose behalf the message was issued.
Field Summary |
java.lang.String |
channel
Log channel. |
long |
date
Creation time. |
java.lang.String |
message
Message to log, if any. |
java.lang.Throwable |
t
Exception to log, if any. |
Constructor Summary |
LogRecord(java.lang.String channel,
java.lang.String message,
java.lang.Throwable t)
Constructor. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
date
public long date
- Creation time.
channel
public java.lang.String channel
- Log channel.
To be used in the log filters.
message
public java.lang.String message
- Message to log, if any.
t
public java.lang.Throwable t
- Exception to log, if any.
LogRecord
public LogRecord(java.lang.String channel,
java.lang.String message,
java.lang.Throwable t)
- Constructor.
Performs inexpensive operations:
- Records the system time;
- Stores the message channel;
- Stores the message itself, if any;
- Stores the exception, if any.
- Parameters:
t
- Owner threadtarget
- Owner objectll
- Log Levelmessage
- Message to log- See Also:
LogWriter