Package | Description |
---|---|
org.spf4j.test.log |
spf4j test log backend for slf4j.
|
Modifier and Type | Method and Description |
---|---|
LogRecord |
LogPrinter.handle(LogRecord record)
Handler handling method
|
LogRecord |
LogHandler.handle(LogRecord record)
Handler handling method
|
Modifier and Type | Method and Description |
---|---|
LogCollection<ArrayDeque<LogRecord>> |
TestLoggers.collect(Level minimumLogLevel,
int maxNrLogs,
boolean collectPrinted)
Collect up to a number of log messages.
|
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasFormat(String format) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasFormatWithPattern(String formatPattern) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasLevel(Level level) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMarker(org.slf4j.Marker marker) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingArguments(org.hamcrest.Matcher<Object[]> matcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingExtraArguments(org.hamcrest.Matcher<Object[]> matcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingExtraThrowable(org.hamcrest.Matcher<Throwable> matcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingExtraThrowableChain(org.hamcrest.Matcher<Iterable<Throwable>> matcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingFormat(org.hamcrest.Matcher<String> tMatcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingMarker(org.hamcrest.Matcher<org.slf4j.Marker> tMatcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingMessage(org.hamcrest.Matcher<String> tMatcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMessage(String message) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMessageWithPattern(String messagePattern) |
Modifier and Type | Method and Description |
---|---|
LogRecord |
LogPrinter.handle(LogRecord record)
Handler handling method
|
LogRecord |
LogHandler.handle(LogRecord record)
Handler handling method
|
static void |
LogPrinter.printTo(PrintStream stream,
LogRecord record,
String annotate) |
Modifier and Type | Method and Description |
---|---|
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
boolean passThrough,
Collector<LogRecord,?,T> collector)
Collect a bunch of logs.
|
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<LogRecord,?,T> collector)
Collect a bunch of logs.
|
Copyright © 2018 SPF4J. All rights reserved.