Package | Description |
---|---|
org.spf4j.test.log |
spf4j test log backend for slf4j.
|
org.spf4j.test.matchers |
Modifier and Type | Method and Description |
---|---|
LogRecord |
LogHandler.handle(LogRecord record)
Handler handling method
|
LogRecord |
GreedyLogPrinter.handle(LogRecord record) |
LogRecord |
LogPrinter.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.
|
Modifier and Type | Method and Description |
---|---|
LogRecord |
LogHandler.handle(LogRecord record)
Handler handling method
|
LogRecord |
GreedyLogPrinter.handle(LogRecord record) |
LogRecord |
LogPrinter.handle(LogRecord record)
Handler handling method
|
static void |
LogPrinter.printTo(Appendable stream,
LogRecord record,
String annotate) |
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.
|
<R> LogCollection<R> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<LogRecord,?,R> collector,
ToIntFunction<List<LogHandler>> whereTo) |
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<LogRecord,?,T> collector)
Collect a bunch of logs.
|
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasArgumentAt(int idx,
Object object) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasArguments(Object... objects) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasAttachment(String attachment) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasExtraArgumentAt(int idx,
Object object) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasExtraArguments(Object... objects) |
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.hasMatchingArguments(Object objects) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingExtraArguments(org.hamcrest.Matcher<Object[]> matcher) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.hasMatchingExtraArgumentsContaining(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) |
static org.hamcrest.Matcher<LogRecord> |
LogMatchers.noAttachment(String attachment) |
Copyright © 2018 SPF4J. All rights reserved.