
23 Sep
2011
23 Sep
'11
8:40 a.m.
Hello Ceki, thank you for your answer! 2011/9/22 Ceki Gülcü <ceki@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. Regards, Lars