[logback-user] (no subject)
felipenaranja at gmail.com
Tue Jul 9 16:55:18 CEST 2013
That should be easy. Juast add import correct classes and then do at proper
section (posiblt the init of the thread) MDC.put(key, value).
On Tue, Jul 9, 2013 at 10:35 AM, KwonNam Son <kwon37xi at gmail.com> wrote:
> When I use Log4j, I can add MDC properties to LogginEvent<http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/spi/LoggingEvent.html>by using
> It's possible because log4j's LoggingEvent is not an interface and it has
> Is it possible to add or modify MDC properties dynamically in Logback?
> The reason I need to change MDC properties using appenders is because of
> some logs from unaccessible threads. I want to add hostname, application
> name and some of server's infomation to the logs then transfer the logs
> event to the central log receiver.
> Logback-user mailing list
> Logback-user at qos.ch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user