[logback-user] Log4j to Logback migration, logback.xml question

Ceki Gülcü ceki at qos.ch
Tue Feb 8 23:06:56 CET 2011


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



More information about the Logback-user mailing list