Hi Sander,

ContextSelector is one way of demultiplexing events per
bundle. Another way is through SiftingAppender (or GSiftingAppender
its equivalent in Groovy) which might be more convenient to use.

Regardless of whether you use ContextSelector or
SiftingAppender/GSiftingAppender, you first need a way to distinguish
events generated by different bundles. Is there a way to differentiate
logging events generated by different bundles?

[1] http://logback.qos.ch/manual/appenders.html#SiftingAppender

On 05/07/2010 11:59 AM, Sander de Groot wrote:
I'm trying to integrate Logback Classic in Apache Felix.
My goal is to have a bundle-based context system so each bundle has it's
own logging factory.
It's important that each bundle is able to supply it's own configuration
file.

I've tried a few things and even wrote a simple ContextSelector but I
don't seem to get it right. Therefore I thought: before going in a time
consuming trial and error process let's ask the experts first.

So, my question: how can I create new loggercontexts efficiently with
each a separate configuration?

Regards,

Sander

_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user

Reply via email to