Class AppenderConfigImpl

java.lang.Object
io.github.cjstehno.testthings.slf4j.AppenderConfigImpl
All Implemented Interfaces:
AppenderConfig

public class AppenderConfigImpl extends Object implements AppenderConfig
Implementation of the AppenderConfig interface used by the InMemoryLogAppender.
  • Constructor Details

    • AppenderConfigImpl

      public AppenderConfigImpl()
  • Method Details

    • logger

      public AppenderConfig logger(org.slf4j.Logger logger)
      Description copied from interface: AppenderConfig
      Configures a logger instance to be captured by the appender.
      Specified by:
      logger in interface AppenderConfig
      Parameters:
      logger - the logger instance
      Returns:
      a reference to this configuration
    • filter

      public AppenderConfig filter(org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent> 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 interface AppenderConfig
      Parameters:
      filter - the filter
      Returns:
      a reference to this configuration