[logback-user] Auto-append a log value

Ingo Siebert ingo.siebert at cas.de
Tue Nov 11 10:03:23 CET 2008


Hi,

I want to append automatically an additional log value for every log 
message which is created.

Reason is that I want to add a OSGi symbolic bundle name to every message.
I've seen a blog entry which solved it with a marker, but I think it's 
error prone because you have to add the marker yourself for every log call.

Any idea how to do this?
Is it possible to set a listener for logged messages which can modify 
the log message?

Cheers,

Ingo


More information about the Logback-user mailing list