|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.util.log4j.Log4jSink
Constructor Summary | |
Log4jSink()
|
Method Summary | |
java.lang.String |
getOptions()
|
boolean |
isStarted()
|
void |
log(java.lang.String s)
Log a message. |
void |
log(java.lang.String tag,
java.lang.Object msg,
Frame frame,
long time)
Log a message. |
void |
setOptions(java.lang.String filename)
Set the log options. |
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Log4jSink()
Method Detail |
public void setOptions(java.lang.String filename)
LogSink
setOptions
in interface LogSink
filename
- A string of characters as defined for the
LOG_OPTIONS system parameter.public java.lang.String getOptions()
getOptions
in interface LogSink
public void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
java.lang.Exception
- An arbitrary exception may be thrown.public void stop()
LifeCycle
stop
in interface LifeCycle
public boolean isStarted()
isStarted
in interface LifeCycle
public void log(java.lang.String tag, java.lang.Object msg, Frame frame, long time)
LogSink
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.public void log(java.lang.String s)
LogSink
log
in interface LogSink
s
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |