Hi, Ceki: 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?
Thanks. On Fri, Jun 24, 2016 at 4:21 PM, Ceki Gulcu <[email protected]> wrote: > Hi Ted, > > From what I can tell, you need to add a ThresholdFilter to the appender > named "errorAppender" to achieve what you describe. > > Cheers, > -- > Ceki > > [1] http://logback.qos.ch/manual/filters.html#thresholdFilter > > > > On 6/24/2016 19:22, Ted Smith wrote: > >> Hello: >> >> I have the following config >> >> <logger name="a.b.c.Klass" level="trace" additivity="true"> >> <appender-ref ref="aSiftAppenderUsingCustomMarker" /> >> </logger> >> <logger name="a.b" level="error" additivity="false"> >> <appender-ref ref="errorAppender" /> >> </logger> >> >> 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 >> >> log.trace(marker,message) >> >> but the error logger should still check the level and disregard any >> marker info. >> >> Thanks in advance for your help >> >> >> >> >> _______________________________________________ >> logback-user mailing list >> [email protected] >> http://mailman.qos.ch/mailman/listinfo/logback-user >> >> _______________________________________________ > logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________ logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user
