|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.mortbay.util.LoggerLogSink
JDK 1.4 Logger LogSink This implementation of LogSink can be used to direct messages to the JDK 1.4 log mechanism.
| Constructor Summary | |
LoggerLogSink()
Constructor. |
|
LoggerLogSink(java.lang.String name)
Constructor. |
|
| Method Summary | |
java.util.logging.Logger |
getLogger()
|
java.lang.String |
getName()
|
java.lang.String |
getOptions()
|
boolean |
isStarted()
|
void |
log(java.lang.String formattedLog)
Log a message. |
void |
log(java.lang.String tag,
java.lang.Object msg,
Frame frame,
long time)
Log a message. |
void |
setLogger(java.util.logging.Logger logger)
|
void |
setName(java.lang.String name)
|
void |
setOptions(java.lang.String options)
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 LoggerLogSink()
public LoggerLogSink(java.lang.String name)
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.logging.Logger getLogger()
public void setLogger(java.util.logging.Logger logger)
public void start()
throws java.lang.Exception
LifeCycle
start in interface LifeCyclejava.lang.Exception - An arbitrary exception may be thrown.
public void stop()
throws java.lang.InterruptedException
LifeCycle
stop in interface LifeCyclejava.lang.InterruptedException - Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.public boolean isStarted()
isStarted in interface LifeCyclepublic void setOptions(java.lang.String options)
LogSink
setOptions in interface LogSinkoptions - A string of characters as defined for the
LOG_OPTIONS system parameter.public java.lang.String getOptions()
getOptions in interface LogSink
public void log(java.lang.String tag,
java.lang.Object msg,
Frame frame,
long time)
LogSink
log in interface LogSinktag - 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 formattedLog)
LogSink
log in interface LogSinkformattedLog -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||