rocks.heikoseeberger.slf4s

Type members

Classlikes

final
class Logger(u: Logger)

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
object Logger
Companion
class
transparent
trait Logging

Mix-in providing a Logger member.

Mix-in providing a Logger member.

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