|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tomcat.util.log.LogHandler | +--org.apache.tomcat.util.qlog.Logger | +--org.apache.tomcat.util.qlog.QueueLogger
A real implementation of the Logger abstraction. It uses a log queue, so that the caller will not have to wait.
Fields inherited from class org.apache.tomcat.util.qlog.Logger |
---|
custom, day, defaultSink, MAX_THROWABLE_DEPTH, NEWLINE, path, timestamp, timestampFormat, timestampFormatter, timestampRaw |
Fields inherited from class org.apache.tomcat.util.log.LogHandler |
---|
level, sink |
Constructor Summary | |
---|---|
QueueLogger()
|
Method Summary | |
---|---|
void |
flush()
Flush the queue - in a separate thread, so that caller doesn't have to wait |
void |
log(java.lang.String prefix,
java.lang.String message,
java.lang.Throwable t,
int verbosityLevel)
Adds a log message and stack trace to the queue and returns immediately. |
void |
setLogDaemon(LogDaemon ld)
|
Methods inherited from class org.apache.tomcat.util.qlog.Logger |
---|
formatTimestamp, formatTimestamp, getDatePrefix, getDay, getLevel, getPath, getTimestampFormat, getVerbosityLevel, isTimestamp, open, setDefaultSink, setPath, setTimestamp, setTimestampFormat, setVerbosityLevel, setVerbosityLevel, throwableToString, throwableToString |
Methods inherited from class org.apache.tomcat.util.log.LogHandler |
---|
close, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueueLogger()
Method Detail |
public void setLogDaemon(LogDaemon ld)
public void log(java.lang.String prefix, java.lang.String message, java.lang.Throwable t, int verbosityLevel)
log
in class LogHandler
message
- the message to log.t
- the exception that was thrown.verbosityLevel
- what type of message is this?
(WARNING/DEBUG/INFO etc)public void flush()
flush
in class LogHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |