Package | Description |
---|---|
org.spf4j.test.log |
spf4j test log backend for slf4j.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AllLevelsLogHandler |
Modifier and Type | Class and Description |
---|---|
class |
GreedyLogPrinter
A Greedy log printer.
|
class |
LogPrinter
A log handler that will print all logs that are not marked as printed above a log level.
|
Modifier and Type | Method and Description |
---|---|
default LogConfig |
LogConfig.add(String category,
LogHandler handler) |
LogConfig |
LogConfig.add(String category,
LogHandler handler,
ToIntFunction<List<LogHandler>> whereTo) |
HandlerRegistration |
TestLoggers.intercept(String category,
LogHandler handler)
Ability to intercept log messages logged under a category
|
void |
TestLoggers.interceptInContext(String category,
LogHandler handler) |
LogConfig |
LogConfig.remove(String category,
LogHandler handler) |
Modifier and Type | Method and Description |
---|---|
LogConfig |
LogConfig.add(String category,
LogHandler handler,
ToIntFunction<List<LogHandler>> whereTo) |
<R> LogCollection<R> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<LogRecord,?,R> collector,
ToIntFunction<List<LogHandler>> whereTo) |
Copyright © 2018 SPF4J. All rights reserved.