[logback-user] LocLoggers and TurboFilters
Dario Campagna
campagna at esteco.com
Fri Jun 8 11:17:45 CEST 2012
Hi all,
Some days ago I started using LocLogger instead of Logger instances in
my application in order to generate localized logging events.
The configuration file I am using contains two MarkerFilters to always
enable certain logging requests. For example, the marker filter
<turboFilter class="ch.qos.logback.classic.turbo.MarkerFilter">
<Marker>INFO_LOG</Marker>
<OnMatch>ACCEPT</OnMatch>
<OnMismatch>NEUTRAL</OnMismatch>
</turboFilter>
always enable logging requests marked INFO_LOG. Thanks to it, when using
Loggers, logging requests marked INFO_LOG are enabled even when the logger
level is set to OFF.
Since I moved from Loggers to LocLoggers these filters stopped working,
i.e., it seems that they are not used to determine if a logging request is
enabled or not.
With LocLoggers logging requests marked INFO_LOG are disabled when the
logger level is set to OFF.
Is this a known issue? Is there a way to solve it?
Cheers,
Dario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120608/86d33a8a/attachment.html>
More information about the Logback-user
mailing list