public static class RedwoodConfiguration.Handlers extends 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 LogRecordHandler |
hideError
Hide the error channel only.
|
static LogRecordHandler |
hideWarn
Hide the warning channel only.
|
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 |
stderr
Output to a standard error.
|
static RedwoodConfiguration.Thunk |
stdout
Output to a standard output.
|
Constructor and Description |
---|
Handlers() |
public static final RedwoodConfiguration.Thunk defaultFile
public static final RedwoodConfiguration.Thunk stdout
public static final RedwoodConfiguration.Thunk stderr
public static final RedwoodConfiguration.Thunk output
public static final LogRecordHandler hideDebug
public static final LogRecordHandler hideError
public static final LogRecordHandler hideWarn
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(String path)
path
- The file to write topublic static RedwoodConfiguration.Thunk file(File path)
path
- The file to write topublic static LogRecordHandler hideChannels(Object... channelsToHide)
public static LogRecordHandler showOnlyChannels(Object... channelsToShow)
public static LogRecordHandler reroute(Object src, 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)
Handlers#chain(LogRecordHandler[], Thunk)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, RedwoodConfiguration.Thunk destination)
Handlers#chain(LogRecordHandler[], Thunk)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, RedwoodConfiguration.Thunk destination)
Handlers#chain(LogRecordHandler[], Thunk)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, LogRecordHandler handler4, RedwoodConfiguration.Thunk destination)
Handlers#chain(LogRecordHandler[], Thunk)
public static RedwoodConfiguration.Thunk chain(LogRecordHandler handler1, LogRecordHandler handler2, LogRecordHandler handler3, LogRecordHandler handler4, LogRecordHandler handler5, RedwoodConfiguration.Thunk destination)
Handlers#chain(LogRecordHandler[], Thunk)