[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 00:27: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
------------------------------

Ceki Gülcü on 16/Apr/22 12:12 AM
[~pkarwasz] From what I could gather, log4j 2.x supports a single stack stored in a {{ThreadLocal}} accessed _without _a key. JBoss logging has *no* support for a stack stored in a {{ThreadLocal}}.

Thus, SLF4J's stack stored by key in a  {{ThreadLocal}} is different than the stack with no key as offered in log4j 2.x. 

If there are multiple use cases for a stack in the same application, then it seems to me that the only way to avoid collisions in the stored values is to access them with different keys.  




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



More information about the slf4j-dev mailing list