log4cats icon indicating copy to clipboard operation
log4cats copied to clipboard

Fix MDC handling in Slf4jLogger

Open morgen-peschke opened this issue 8 months ago • 2 comments

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

morgen-peschke avatar Jun 14 '24 02:06 morgen-peschke