public static final class TraceLoggerFactory.ForkHandler extends 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 and Description |
---|
TraceLoggerFactory.ForkHandler(Handler handler1,
Handler handler2)
Construct using the downstream handlers.
|
Modifier and Type | Method and Description |
---|---|
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. |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setLevel
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)
public final void flush()
Handler.flush()
public final void close()
Handler.close()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.