[logback-user] SiftingAppender question
Gabor Dolla
agdolla at gmail.com
Mon Oct 4 21:03:03 CEST 2010
Hi
Groovy is an option and I'm working on the groovy script already but I hoped
for a simple solution because I fear that the groovy
version will be slow. Anyway, thanks for your effort.
Gabor
On Mon, Oct 4, 2010 at 8:49 PM, Ceki Gulcu <ceki at qos.ch> wrote:
>
> 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 <ceki at qos.ch
>> <mailto:ceki at qos.ch>> 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
>> Logback-user at qos.ch <mailto:Logback-user at qos.ch>
>>
>> http://qos.ch/mailman/listinfo/logback-user
>>
>>
>>
>>
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://qos.ch/mailman/listinfo/logback-user
>>
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20101004/5095c6fc/attachment.html>
More information about the Logback-user
mailing list