org.mortbay.log
Interface LogSink
- LifeCycle, Serializable
- NullLogSink, OutputStreamLogSink
A Log sink.
This class represents both a concrete or abstract sink of
Log data. The default implementation logs to a PrintWriter, but
derived implementations may log to files, syslog, or other
logging APIs.
$Id: LogSink.java,v 1.1 2004/06/04 21:37:20 gregwilkins Exp $ void | log(String formattedLog) - Log a message.
|
void | log(String tag, Object msg, Frame frame, long time) - Log a message.
|
void | setLogImpl(LogImpl impl)
|
log
public void log(String formattedLog)
Log a message.
The formatted log string is written to the log sink. The default
implementation writes the message to a PrintWriter.
log
public void log(String tag,
Object msg,
Frame frame,
long time)
Log a message.
This method formats the log information as a string and calls
log(String). It should only be specialized by a derived
implementation if the format of the logged messages is to be changed.
tag
- Tag for type of logmsg
- The messageframe
- The frame that generated the message.time
- The time stamp of the message.
setLogImpl
public void setLogImpl(LogImpl impl)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.