You could have parameter values read from MDC if you were using GSiftingAppender, the equivalent of SiftingAppender written in Groovy. Is using Groovy an option for you?

On 04.10.2010 19:40, Gabor Dolla wrote:
Hi and thank you for helping me.

Unfortunatelly this does not answer my question.

I understand the discriminator object. What I 'd like to achieve is that
when the siftingappender creates a new appender because the
discriminator object is new then the new appender should take certain
parameters (filename, pattern) from mdc.

Thanks

Gabor


On Mon, Oct 4, 2010 at 7:22 PM, Ceki Gulcu <[email protected]
<mailto:[email protected]>> wrote:

    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

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




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


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

Reply via email to