MDC.MDCCloseable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MDC.MDCCloseable

Frank Pedroza
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
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MDC.MDCCloseable

Matt Sicker
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 <[hidden email]> 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
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user



--
Matt Sicker <[hidden email]>

_______________________________________________
slf4j-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user
Loading...