log4cats
log4cats copied to clipboard
Fix MDC handling in Slf4jLogger
Updates the handling of the MDC in Slf4jLogger
to resolve questions raised in #851
Changes:
- Always clear the MDC before populating when logging with context
- Don't skip the MDC massaging when logging without context
Checks:
- laziness of
msg
parameter - dispatch to log4j Logger messages
- MDC setup/restoration
- MDC recovery when exceptions happen during message creation