[slf4j-dev] [JIRA] (SLF4J-459) MDC to return previous values
QOS.CH (JIRA)
noreply-jira at qos.ch
Sun May 5 13:49:00 CEST 2019
Claude Brisson created SLF4J-459:
------------------------------------
Summary: MDC to return previous values
Key: SLF4J-459
URL: https://jira.qos.ch/browse/SLF4J-459
Project: SLF4J
Issue Type: Improvement
Components: Core API
Affects Versions: 1.8.0-beta4
Environment: The put(key, value) method in MDC and MDCAdapter could easily return the previously stored value, or null if not found, since this value is returned by the underlying map.
Plus, the change is fully backward compatible.
This addition eases the implementation of stackable contexts by client applications, without the need of an additional map lookup to fetch the current MDC key value for latter restoration when the client context is popped up.
Reporter: Claude Brisson
Assignee: SLF4J developers list
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the slf4j-dev
mailing list