[slf4j-dev] [JIRA] (SLF4J-472) Should MDCClosable put the old value back into the MDC?

QOS.CH (JIRA) noreply-jira at qos.ch
Wed Sep 4 19:28:00 CEST 2019


Stephen created SLF4J-472:
-----------------------------

             Summary: Should MDCClosable put the old value back into the MDC?
                 Key: SLF4J-472
                 URL: https://jira.qos.ch/browse/SLF4J-472
             Project: SLF4J
          Issue Type: Improvement
            Reporter: Stephen
            Assignee: SLF4J developers list
            Priority: Minor


I'm not actually sure about this myself.

Currently when you close the MDCClosable it will remove the value from the MDC. The close method doesn't put things back to the way they were.

The put method called when MDCClosable is created returns void so this isn't a trivial thing to implement. I imagine that different logging providers might not return the old value like the put method on the map.

Should something like this be implemented?



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list