Returns the accumulated markers of this logger.
Returns the accumulated markers of this logger.
the accumulated markers, may be Markers.empty.
Returns a new instance of the logger that will only log if the condition is met.
Returns a new instance of the logger that will only log if the condition is met.
Returns a logger which will always render with the given marker.
Returns a logger which will always render with the given marker.
the instance type.
a type class instance of ToMarkers
a new instance of the logger that has this marker.
(Since version ) see corresponding Javadoc for more information.
Returns a new instance of the logger that will only log if the condition is met.
Returns a new instance of the logger that will only log if the condition is met.
(Since version 1.4.0) Use withCondition
This trait implements a logger that is used for rendering entry/exit logging wrappers.
The FlowMethod implements the bulk of the logic here, and is intended to be used with a user-provided FlowBehavior that determines what statements and side effects happen on entry and exit.
If logging is enabled, then the execution is wrapped to capture the result or execution, and then the result is returned or execution rethrown. If the logging level is not enabled or logging execution is denied by a filter, then execution of the block still proceeds but is not wrapped by a
Try
block.You should use
Condition.never
explicitly here to disable logging, as it will shortcut to a Noop implementation. Benchmarks show a noop flow takes 42ns to execute, 4.5ns if you remove sourcecode.Args from the method signature.