Class LogNameMatcher

java.lang.Object
org.hamcrest.BaseMatcher<ch.qos.logback.classic.spi.ILoggingEvent>
io.github.cjstehno.testthings.slf4j.match.LogNameMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent>, org.hamcrest.SelfDescribing

public class LogNameMatcher extends org.hamcrest.BaseMatcher<ch.qos.logback.classic.spi.ILoggingEvent>
A Hamcrest matcher used to match criteria on a logging event based on the logger name.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    static org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent>
    loggerName(org.hamcrest.Matcher<String> matcher)
    Creates a logging event matcher for matching the logger name.
    boolean
    matches(Object actual)
     

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LogNameMatcher

      public LogNameMatcher()
  • Method Details

    • loggerName

      public static org.hamcrest.Matcher<ch.qos.logback.classic.spi.ILoggingEvent> loggerName(org.hamcrest.Matcher<String> matcher)
      Creates a logging event matcher for matching the logger name.
      Parameters:
      matcher - the name string matcher
      Returns:
      the log event matcher
    • matches

      public boolean matches(Object actual)
    • describeTo

      public void describeTo(org.hamcrest.Description description)