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)
_______________________________________________
slf4j-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-dev