[logback-user] Turning off sifting appender when MDC not set

Marco Sousa marcomsousa at gmail.com
Tue Oct 18 16:01:38 CEST 2011


With a filter JaninoEventEvaluator

http://logback.qos.ch/manual/filters.html#JaninoEventEvaluator


-------------------------------------
Marco Sousa


2011/10/18 GS <gurnamsjunk at gmail.com>

> Hi,
>
> I have configured the sifting appender with a default value (unknown) for
> the discriminator, which generates a file called foo-unknown.log.  But I
> would ideally like the appender to not output to any file when the
> discriminator via MDC has not yet been set. Any suggestions?
>
> Thanks,
> G
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20111018/eefe5ac3/attachment.html>


More information about the Logback-user mailing list