Turning off sifting appender when MDC not set

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

With a filter JaninoEventEvaluator http://logback.qos.ch/manual/filters.html#JaninoEventEvaluator ------------------------------------- Marco Sousa 2011/10/18 GS <gurnamsjunk@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@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
participants (2)
-
GS
-
Marco Sousa