Skip to content

Commit 0c929fb

Browse files
committed
Renamed logger as matchLogger
1 parent b8166cd commit 0c929fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/scala/com/phasmidsoftware/matchers/Matchers.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ trait Matchers {
18711871
*/
18721872
def isEqual[R](q: R, r: R): Boolean = q == r
18731873

1874-
val logger: MatchLogger
1874+
val matchLogger: MatchLogger
18751875

18761876
/**
18771877
* Implicit class MatcherOps which allows us to use the method :| on a Matcher[T,R].
@@ -2006,8 +2006,8 @@ trait Matchers {
20062006
* @return a Matcher[T, R] based on f.
20072007
*/
20082008
private def constructMatcher[T, R](f: T => MatchResult[R], matcherName: String = ""): Matcher[T, R] =
2009-
if (logger.disabled) (t: T) => tryMatch(f, t)
2010-
else new LoggingMatcher[T, R](f, matcherName)(logger)
2009+
if (matchLogger.disabled) (t: T) => tryMatch(f, t)
2010+
else new LoggingMatcher[T, R](f, matcherName)(matchLogger)
20112011

20122012
/**
20132013
* Method to invoke the given function but protected by try/catch.
@@ -2179,6 +2179,6 @@ object Matchers {
21792179
* The `MatchLogger` is responsible for managing logging with the specified `LogLevel`.
21802180
* It can either log messages or remain disabled based on the defined logging level.
21812181
*/
2182-
val logger: MatchLogger = implicitly[MatchLogger]
2182+
val matchLogger: MatchLogger = implicitly[MatchLogger]
21832183
}
21842184
}

0 commit comments

Comments
 (0)