[logback-user] SiftingAppender question

Ceki Gulcu ceki at qos.ch
Mon Oct 4 19:22:29 CEST 2010


On 04.10.2010 13:17, Gabor Dolla wrote:
> Hi
>
> Is it possible to configure the SiftingAppender to use parameters from
> MDC other than the discriminator ?

SiftingAppender takes a disriminator object as a configuration 
parameter. In the absence of a discriminator specification, 
SiftingAppender defaults to a discriminator of type 
*MDCBasedDiscriminator* which uses the contents of the MDC for its 
discriminating action. You can choose which key to use, e.g. logger of 
your example.

Does this answer your question?

--
Ceki



More information about the Logback-user mailing list