|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
com.neeve.trace.TraceLoggerFactory.ForkHandler
public static final class TraceLoggerFactory.ForkHandler
Implements a 'fork' trace handler.
This handler forks trace log records to two downstream handlers. Log records are only forwarded by fork handlers if they pass any installed filters and level checks.
Constructor Summary | |
---|---|
TraceLoggerFactory.ForkHandler(Handler handler1,
Handler handler2)
Construct using the downstream handlers. |
Method Summary | |
---|---|
void |
close()
Implementation of Handler.close() |
void |
flush()
Implementation of Handler.flush() |
void |
publish(LogRecord record)
Implementation of Handler.publish(java.util.logging.LogRecord) |
void |
setFormatter(Formatter formatter)
Overriden implementation of Handler.setFormatter(java.util.logging.Formatter)
This method sets the formatter of the downstream handler. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setLevel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TraceLoggerFactory.ForkHandler(Handler handler1, Handler handler2)
handler1
- The first downstream handlerhandler2
- The second downstream handlerMethod Detail |
---|
public final void setFormatter(Formatter formatter)
Handler.setFormatter(java.util.logging.Formatter)
This method sets the formatter of the downstream handler. The method does not affect the formatter of handlers in the watcher list.
setFormatter
in class Handler
public final void publish(LogRecord record)
Handler.publish(java.util.logging.LogRecord)
publish
in class Handler
public final void flush()
Handler.flush()
flush
in class Handler
public final void close()
Handler.close()
close
in class Handler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |