| Package | Description |
|---|---|
| org.spf4j.test.log |
spf4j test log backend for slf4j.
|
| org.spf4j.test.matchers |
| Modifier and Type | Class and Description |
|---|---|
class |
TestLogRecordImpl |
| Modifier and Type | Method and Description |
|---|---|
TestLogRecord |
GreedyLogPrinter.handle(TestLogRecord record) |
TestLogRecord |
LogPrinter.handle(TestLogRecord record)
Handler handling method
|
TestLogRecord |
LogHandler.handle(TestLogRecord record)
Handler handling method
|
| Modifier and Type | Method and Description |
|---|---|
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(Level minimumLogLevel,
int maxNrLogs,
boolean collectPrinted)
Collect up to a number of log messages.
|
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(Level minimumLogLevel,
int maxNrLogs,
boolean collectPrinted,
String include,
String... excludeCategories) |
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter,
Collector<TestLogRecord,?,ArrayDeque<TestLogRecord>> pcollector) |
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
int maxNrLogs,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter) |
| Modifier and Type | Method and Description |
|---|---|
TestLogRecord |
GreedyLogPrinter.handle(TestLogRecord record) |
TestLogRecord |
LogPrinter.handle(TestLogRecord record)
Handler handling method
|
TestLogRecord |
LogHandler.handle(TestLogRecord record)
Handler handling method
|
| Modifier and Type | Method and Description |
|---|---|
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
boolean passThrough,
Collector<TestLogRecord,?,T> collector)
Collect a bunch of logs.
|
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
boolean passThrough,
org.hamcrest.Matcher<TestLogRecord> matcher,
Collector<TestLogRecord,?,T> collector)
Collect matching logs.
|
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
boolean passThrough,
org.hamcrest.Matcher<TestLogRecord> matcher,
Collector<TestLogRecord,?,T> collector)
Collect matching logs.
|
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter,
Collector<TestLogRecord,?,ArrayDeque<TestLogRecord>> pcollector) |
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter,
Collector<TestLogRecord,?,ArrayDeque<TestLogRecord>> pcollector) |
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter,
Collector<TestLogRecord,?,ArrayDeque<TestLogRecord>> pcollector) |
LogCollection<ArrayDeque<TestLogRecord>> |
TestLoggers.collect(String category,
Level minimumLogLevel,
int maxNrLogs,
boolean collectPrinted,
Predicate<TestLogRecord> collectorFilter) |
<R> LogCollection<R> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<TestLogRecord,?,R> collector,
ToIntFunction<List<LogHandler>> whereTo) |
<T> LogCollection<T> |
TestLoggers.collect(String category,
Level fromLevel,
Level toLevel,
boolean passThrough,
Collector<TestLogRecord,?,T> collector)
Collect a bunch of logs.
|
LogAssert |
TestLoggers.expect(String category,
Level fromLevel,
boolean passThrough,
org.hamcrest.Matcher<TestLogRecord> matcher,
org.hamcrest.Matcher<Iterable<TestLogRecord>> matchedMatcher)
expect a stream of logs filtered by a matcher, this strem will be matched against the matchedMatcher.
|
LogAssert |
TestLoggers.expect(String category,
Level fromLevel,
boolean passThrough,
org.hamcrest.Matcher<TestLogRecord> matcher,
org.hamcrest.Matcher<Iterable<TestLogRecord>> matchedMatcher)
expect a stream of logs filtered by a matcher, this strem will be matched against the matchedMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasArgumentAt(int idx,
Object object) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasArguments(Object... objects) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasAttachment(String attachment) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasExtraArgument(Object object) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasExtraArgumentAt(int idx,
Object object) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasExtraArguments(Object... objects) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasFormat(String format) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasFormatWithPattern(String formatPattern) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasLevel(Level level) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMarker(org.slf4j.Marker marker) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingArgumentAt(int idx,
org.hamcrest.Matcher<Object> matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingArguments(org.hamcrest.Matcher<Object[]> matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingExtraArguments(org.hamcrest.Matcher<Object[]> matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingExtraArgumentsContaining(org.hamcrest.Matcher<Object>... matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingExtraThrowable(org.hamcrest.Matcher<Throwable> matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingExtraThrowableChain(org.hamcrest.Matcher<Iterable<Throwable>> matcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingFormat(org.hamcrest.Matcher<String> tMatcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingMarker(org.hamcrest.Matcher<org.slf4j.Marker> tMatcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMatchingMessage(org.hamcrest.Matcher<String> tMatcher) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMessage(String message) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasMessageWithPattern(String messagePattern) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasNotLogger(Predicate<String> pred) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.hasNotLoggers(Set<String> loggers) |
static org.hamcrest.Matcher<TestLogRecord> |
LogMatchers.noAttachment(String attachment) |
Copyright © 2019 SPF4J. All rights reserved.