[logback-user] logback additivity level is not working

Ted Smith tedsmithgroup at gmail.com
Fri Jun 24 17:22:11 UTC 2016


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

Thanks in advance for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20160624/d4b0a852/attachment.html>

More information about the logback-user mailing list