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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
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
-
describeTo
public void describeTo(org.hamcrest.Description description)
-