[slf4j-dev] [JIRA] Updates for SLF4J-531: MDC should support stack values identified by key

QOS.CH (JIRA) noreply-jira at qos.ch
Sat Apr 16 09:57:00 CEST 2022


SLF4J / SLF4J-531 [Open]
MDC should support stack values identified by key

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

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

There is 1 comment.

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

==============================
 1 comment
------------------------------

Ralph Goers on 16/Apr/22 9:45 AM
To be honest, I can count on one hand with less than all 5 fingers the number of people who I can recall that have inquired about the NDC in either Log4j's Jira or mailing lists. So the idea that somehow multiple stacks would be useful is surprising since the vast majority of users don't use the ThreadContextStack/NDC at all.

However, it does make sense that the ThreadContextMap (MDC) should support collections of values as well as single values. Although this implementation uses a Deque instead of a List it does fulfill that purpose. So when looking at it from that perspective it makes sense that keys in the Map should not overlap since it is an extension of the MDC. 


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list