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

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Jul 9 17:08:00 CEST 2021


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

Daniel Raniz Raneland on 09/Jul/21 4:54 PM
No, that would not work since the goal is to do


 {{try (Closeable temp = MDC.putAllCloseable(myEntries)) {}}
{{     // Do stuff}}
{{ }}}

And that requires a single {{Closeable}} since try-with-resources doesn't work with a collection.


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



More information about the slf4j-dev mailing list