[logback-dev] [JIRA] Updates for LOGBACK-1765: MDC Properties Not Associated with Log Statements

logback developers list logback-dev at qos.ch
Thu Sep 14 07:59:00 UTC 2023


logback / LOGBACK-1765 [Open]
MDC Properties Not Associated with Log Statements

==============================

Here's what changed in this issue in the last few minutes.

This issue has been created
This issue is now assigned to you.


View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1765

==============================
 Issue created
------------------------------

Naser Ayat created this issue on 14/Sep/23 9:48

Summary:              MDC Properties Not Associated with Log Statements
Issue Type:           Bug
Affects Versions:     1.4.11, 1.4.8, 1.4.9
Assignee:             Logback dev list
Components:           logback-classic
Created:              14/Sep/23 9:48
Environment:
  macOS Ventura 13.6.2
  
  OpenJDK 17.0.8
  
  Spring Boot 3.1.3
Labels:               MDC
Priority:             Major
Reporter:             Naser Ayat
Description:
  Starting from version 1.4.8 of Logback, an issue has been observed where MDC properties are no longer associated with log statements when a custom {{{}MDCAdapter{}}}, for instance {{{}com.twitter.inject.logging.FinagleMDCAdapter{}}}, is set in the application.
  
  The likely root cause is that, beginning with version 1.4.8, Logback obtains the MDCAdapter from {{{{ch.qos.logback.classic.LoggerContext}}}} instead of directly getting it from MDC. Consequently, the application ends up using two separate and independent MDCAdapters concurrently.
  
  You can find a simplified application created to reproduce this issue in the following repository: [https://github.com/naser-ayat/logback-bug-reproducer]
  
   


==============================
 This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af)



More information about the logback-dev mailing list