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

GS gurnamsjunk at gmail.com
Tue Oct 18 15:56:11 CEST 2011


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


More information about the Logback-user mailing list