[logback-user] Nested sifting appenders
Dario Campagna
campagna at esteco.com
Thu Apr 19 15:05:42 CEST 2012
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.
Cheers,
Dario
More information about the Logback-user
mailing list