[logback-user] logback additivity level is not working
tedsmithgroup at gmail.com
Fri Jun 24 20:44:15 UTC 2016
Thanks for quick response. So the level="error" does not have any effect
if using marker?
is there a performance difference using filter versus using level setting?
On Fri, Jun 24, 2016 at 4:21 PM, Ceki Gulcu <ceki at qos.ch> wrote:
> Hi Ted,
> From what I can tell, you need to add a ThresholdFilter to the appender
> named "errorAppender" to achieve what you describe.
>  http://logback.qos.ch/manual/filters.html#thresholdFilter
> On 6/24/2016 19:22, Ted Smith wrote:
>> I have the following config
>> <logger name="a.b.c.Klass" level="trace" additivity="true">
>> <appender-ref ref="aSiftAppenderUsingCustomMarker" />
>> <logger name="a.b" level="error" additivity="false">
>> <appender-ref ref="errorAppender" />
>> as you can see, I am trying to capture all "error" level messages (and
>> discard lower levels) from
>> child loggers into the "errorAppender", even though child loggers are
>> at trace level, which would log to their own siftAppenders.
>> But all the trace logs still get into error appenders, even though the
>> level is clearly set to "error"
>> Could it be due to the use of marker or siftappender in my log like
>> but the error logger should still check the level and disregard any
>> marker info.
>> Thanks in advance for your help
>> logback-user mailing list
>> logback-user at qos.ch
> logback-user mailing list
> logback-user at qos.ch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the logback-user