public static class RedwoodConfiguration.Handlers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LogRecordHandler |
collapseApproximate
Collapse records in a heuristic way to make reading easier.
|
static LogRecordHandler |
collapseExact
Collapse records which are duplicates into a single message, followed by a message detailing how many times
it was repeated.
|
static RedwoodConfiguration.Thunk |
defaultFile
Output to a file.
|
static LogRecordHandler |
hideDebug
Hide the debug channel only.
|
static RedwoodConfiguration.Thunk |
javaUtil
Output to java.util.Logging.
|
static RedwoodConfiguration.Thunk |
noop
A NOOP, as the name implies.
|
static RedwoodConfiguration.Thunk |
output
Output to the default location specified by the output() method.
|
static LogRecordHandler |
showOnlyError
Show only errors (e.g., to send them to an error file)
|
static RedwoodConfiguration.Thunk |
slf4j
Output to slf4j.
|
static RedwoodConfiguration.Thunk |
stderr
Output to a standard error.
|
static RedwoodConfiguration.Thunk |
stdout
Output to a standard output.
|
Constructor and Description |
---|
Handlers() |
Modifier and Type | Method and Description |
---|---|
static RedwoodConfiguration.Thunk |
branch(RedwoodConfiguration.Thunk... destinations)
Send any incoming messages multiple ways.
|
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler[] handlers,
RedwoodConfiguration.Thunk destination)
Apply each of the handlers to incoming log messages, in sequence.
|
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler handler1,
LogRecordHandler handler2,
LogRecordHandler handler3,
LogRecordHandler handler4,
LogRecordHandler handler5,
RedwoodConfiguration.Thunk destination) |
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler handler1,
LogRecordHandler handler2,
LogRecordHandler handler3,
LogRecordHandler handler4,
RedwoodConfiguration.Thunk destination) |
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler handler1,
LogRecordHandler handler2,
LogRecordHandler handler3,
RedwoodConfiguration.Thunk destination) |
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler handler1,
LogRecordHandler handler2,
RedwoodConfiguration.Thunk destination) |
static RedwoodConfiguration.Thunk |
chain(LogRecordHandler handler1,
RedwoodConfiguration.Thunk destination) |
static RedwoodConfiguration.Thunk |
file(java.io.File path)
Output to a file.
|
static RedwoodConfiguration.Thunk |
file(java.lang.String path)
Output to a file.
|
static LogRecordHandler |
hideChannels(java.lang.Object... channelsToHide)
Hide these channels, in addition to anything already hidden by upstream handlers.
|
static LogRecordHandler |
reroute(java.lang.Object src,
java.lang.Object dst)
Rename a channel to be something else
|
static LogRecordHandler |
showAllChannels()
Show all channels (with this handler, there may be upstream handlers).
|
static LogRecordHandler |
showOnlyChannels(java.lang.Object... channelsToShow)
Show only these channels, as far as downstream handlers are concerned.
|
public static final RedwoodConfiguration.Thunk defaultFile
public static final RedwoodConfiguration.Thunk stdout
public static final RedwoodConfiguration.Thunk stderr
public static final RedwoodConfiguration.Thunk slf4j
public static final RedwoodConfiguration.Thunk javaUtil
public static final RedwoodConfiguration.Thunk output
public static final LogRecordHandler hideDebug
public static final LogRecordHandler showOnlyError
public static final LogRecordHandler collapseApproximate
public static final LogRecordHandler collapseExact
public static RedwoodConfiguration.Thunk noop
public static RedwoodConfiguration.Thunk file(java.lang.String path)
path
- The file to write topublic static RedwoodConfiguration.Thunk file(java.io.File path)
path
- The file to write topublic static LogRecordHandler hideChannels(java.lang.Object... channelsToHide)
public static LogRecordHandler showAllChannels()
public static LogRecordHandler showOnlyChannels(java.lang.Object... channelsToShow)
public static LogRecordHandler reroute(java.lang.Object src, java.lang.Object dst)
public static RedwoodConfiguration.Thunk branch(RedwoodConfiguration.Thunk... destinations)
destinations
- The destinations for log messages coming into this node.public static RedwoodConfiguration.Thunk chain(LogRecordHandler[] handlers, RedwoodConfiguration.Thunk destination)
handlers
- The handlers to applydestination
- The final destination of the messages, after processingpublic static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, RedwoodConfiguration.Thunk destination)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, RedwoodConfiguration.Thunk destination)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, RedwoodConfiguration.Thunk destination)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, LogRecordHandler handler4, RedwoodConfiguration.Thunk destination)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, LogRecordHandler handler4, LogRecordHandler handler5, RedwoodConfiguration.Thunk destination)