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

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


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?


More information about the Logback-user mailing list