[logback-user] additional informations for appenders?

Lars Fischer reschifl at googlemail.com
Fri Sep 23 10:40:47 CEST 2011

Hello Ceki,

thank you for your answer!

2011/9/22 Ceki Gülcü <ceki at qos.ch>:
> 1) For data which stays relatively stable during the scope of (service)
> request, MDC is the way to go.

What about data which could change, lets say for every log event?
(e.g. two alternating docIds)
Reading the documentation, the MDC is no good choice for such often
changing data.

Can I put this data into the Object[] of the Logger methods?

> 2) You can remove a TurboFilter and attach a modified version
> programmatically. You don't need to reset the LoggerContext.

This sounds very good.


More information about the Logback-user mailing list