
8 Feb
2011
8 Feb
'11
10:06 p.m.
On 08/02/2011 10:46 PM, Fabio Erculiani wrote:
I need to set a property value on my custom Logger class, and I need to do it through logback.xml like I was able to do with log4j. If that's not possible, fine, I'll find another way to do the same. Just wanted to know if there would be a way from inside logback.xml.
Logback offers 3 different options you might not have considered: 1) put key/values into the logging context 2) put key/values into MDC 3) attach a marker to your logging statement Could one of the above work for you? -- Ceki