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.pedr...@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@qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
>



-- 
Matt Sicker <boa...@gmail.com>
_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to