[logback-user] Nested sifting appenders
ceki
ceki at qos.ch
Thu Apr 19 15:21:28 CEST 2012
On 19.04.2012 15:05, Dario Campagna wrote:
> Hi Ceki,
>
> [cut]
>
>> Sifting appenders cannot be nested. The error messages don't make much
>> sense. Probably due to the fact that sifting appenders cannot be nested.
>
> Ok.
>
> [cut]
>
>> Anyway, instead of nesting sifting appender, you should create your own
>> discriminator class which merges the values for MDC keys parent and node
>> into ${parent}/${node}. Just emulate the code in MDCBasedDiscriminator
>> [1]. If you run into trouble ask for help here.
>
> Thank you for your suggestion. I implemented my own discriminator and it works.
Would you like to post it on this list for future reference?
> Cheers,
> Dario
--
Ceki
http://twitter.com/#!/ceki
More information about the Logback-user
mailing list