rocks.heikoseeberger.slf4s
package rocks.heikoseeberger.slf4s
Type members
Classlikes
final
Logger wrapping a SLF4J logger, applying the check-enabled-idiom to the log methods.
Logger wrapping a SLF4J logger, applying the check-enabled-idiom to the log methods.
- Value Params
- u
Wrapped SLF4J logger.
- Companion
- object
Value members
Concrete methods
def withMDC[A](keyAndValue: (String, String), moreKeyAndValue: (String, String)*)(chunk: => A): Unit
Adds the given entries to the MDC, then evaluates the given chunck and finally removes the entries again.
Adds the given entries to the MDC, then evaluates the given chunck and finally removes the entries again.
- Value Params
- chunk
code to be evaluated
- keyAndValue
MDC entry
- moreKeyAndValue
more MDC entries