org.mortbay.log
Class NullLogSink
java.lang.Object
org.mortbay.log.NullLogSink
- LifeCycle, LogSink, Serializable
public class NullLogSink
extends java.lang.Object
getOptions
public String getOptions()
isStarted
public boolean isStarted()
- isStarted in interface LifeCycle
- True if the LifeCycle has been started.
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 in interface LogSink
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.
- log in interface LogSink
tag
- Tag for type of logmsg
- The messageframe
- The frame that generated the message.time
- The time stamp of the message.
setOptions
public void setOptions(String options)
start
public void start()
Start the LifeCycle.
- start in interface LifeCycle
stop
public void stop()
Stop the LifeCycle.
The LifeCycle may wait for current activities to complete
normally, but it can be interrupted.
- stop in interface LifeCycle
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.