[slf4j-user] MDC.MDCCloseable

Matt Sicker boards at gmail.com
Thu Feb 23 17:30:57 CET 2017


try (MDC.MDCCloseable m = MDC.putCloseable("key", "value")) {
  // MDC is set for this and cleared at end
}

On 23 February 2017 at 10:18, Frank Pedroza <frank.pedroza at gmail.com> wrote:

> I'm trying to understand how to use MDC.MDCCloseable. Can anyone provide
> an example or some documentation that demonstrates its use? Thanks.
>
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
>



-- 
Matt Sicker <boards at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20170223/af1fa874/attachment.html>


More information about the slf4j-user mailing list