[slf4j-dev] [JIRA] Updates for SLF4J-387: Implement putAll and putAllClosable

QOS.CH (JIRA) noreply-jira at qos.ch
Sun Aug 28 09:18:00 CEST 2022


SLF4J / SLF4J-387 [In Progress]
Implement putAll and putAllClosable

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

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-387

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

Piotr P. Karwasz on 28/Aug/22 9:04 AM
[~ceki],

Why not extend the {{MDCCloseable}} with a {{put(String key, String value)}} method? Then it would be possible to write:

{code:java}
try (Closeable temp = MDC.putCloseable("key1", "value1").put("key2", "value2")) {
    // Do stuff
}
{code}



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



More information about the slf4j-dev mailing list