Class AppenderConfigImpl
java.lang.Object
io.github.cjstehno.testthings.slf4j.AppenderConfigImpl
- All Implemented Interfaces:
AppenderConfig
Implementation of the
AppenderConfig
interface used by the InMemoryLogAppender
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent> filter) Configures a filter which will be used to allow only log events matching the filter to be appended.logger
(org.slf4j.Logger logger) Configures a logger instance to be captured by the appender.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.cjstehno.testthings.slf4j.AppenderConfig
filter, loggedClass, loggerNamed
-
Constructor Details
-
AppenderConfigImpl
public AppenderConfigImpl()
-
-
Method Details
-
logger
Description copied from interface:AppenderConfig
Configures a logger instance to be captured by the appender.- Specified by:
logger
in interfaceAppenderConfig
- Parameters:
logger
- the logger instance- Returns:
- a reference to this configuration
-
filter
Description copied from interface:AppenderConfig
Configures a filter which will be used to allow only log events matching the filter to be appended. Only one filter may be defined, if this is called twice, the last one will be used.- Specified by:
filter
in interfaceAppenderConfig
- Parameters:
filter
- the filter- Returns:
- a reference to this configuration
-