com.phasmidsoftware.matchers.MatchLogger
See theMatchLogger companion object
A logger class for handling and managing logging operations based on the specified log level.
Value parameters
f
A function that takes a string input and performs the logging operation.
logLevel
The logging level to determine the behavior of the logger (LogOff, LogInfo, LogDebug).
Attributes
Constructor
Creates a new MatchLogger instance with a given log level and a logging function.
Note
The class extends String => Unit, enabling it to be used directly as a function.
Companion
object
Graph
Reset zoom Hide graph Show graph
Supertypes
trait String => Unit
class Object
trait Matchable
class Any
Known subtypes
Members list
Applies the provided logging function if the logging level is LogInfo or LogDebug. The log action is skipped if the logging level does not match these criteria.
Applies the provided logging function if the logging level is LogInfo or LogDebug. The log action is skipped if the logging level does not match these criteria.
Value parameters
w
The input string to be logged by the provided logging function.
Attributes
Returns
Unit value indicating the completion of the logging action or its omission based on the log level.
Definition Classes
Function1
Indicates whether the logger is disabled.
Indicates whether the logger is disabled.
Attributes
Returns
True if the logging level is LogOff, meaning no logging will occur; otherwise, false.
Composes two instances of Function1 in a new Function1, with this function applied first.
Composes two instances of Function1 in a new Function1, with this function applied first.
Type parameters
A
the result type of function g
Value parameters
g
a function R => A
Attributes
Returns
a new function f such that f(x) == g(apply(x))
Inherited from:
Function1
Composes two instances of Function1 in a new Function1, with this function applied last.
Composes two instances of Function1 in a new Function1, with this function applied last.
Type parameters
A
the type to which function g can be applied
Value parameters
g
a function A => T1
Attributes
Returns
a new function f such that f(x) == apply(g(x))
Inherited from:
Function1
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
Returns
a string representation of the object.
Definition Classes
Function1 -> Any
Inherited from:
Function1