Set the Mapped Diagnostic Context for the thread and execute the function f
Set the Mapped Diagnostic Context for the thread and execute the function f
Upon return, the MDC is cleared of the values passed (any MDC values that existed prior to this call remains)
This function, if set, will be called before any loggers are created
This function, if set, will be called before any loggers are created
Useful for initializing the logging backend with a non-default configuration
Helpers exists for log4j & logback:
Logger.setup = Full(Log4j.withFile(url)
or
Logger.setup = Full(Logback.withFile(url))