<div dir="ltr"><div><div>Hi, Ceki:<br><br></div>Thanks for quick response. So the level="error" does not have any effect if using marker?<br></div><div>is there a performance difference using filter versus using level setting?<br></div><div><br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 4:21 PM, Ceki Gulcu <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ted,<br>
<br>
>From what I can tell, you need to add a ThresholdFilter to the appender named "errorAppender" to achieve what you describe.<br>
<br>
Cheers,<br>
--<br>
Ceki<br>
<br>
[1] <a href="http://logback.qos.ch/manual/filters.html#thresholdFilter" rel="noreferrer" target="_blank">http://logback.qos.ch/manual/filters.html#thresholdFilter</a><div><div class="h5"><br>
<br>
<br>
On 6/24/2016 19:22, Ted Smith wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello:<br>
<br>
I have the following config<br>
<br>
<logger name="a.b.c.Klass" level="trace" additivity="true"><br>
<appender-ref ref="aSiftAppenderUsingCustomMarker" /><br>
</logger><br>
<logger name="a.b" level="error" additivity="false"><br>
<appender-ref ref="errorAppender" /><br>
</logger><br>
<br>
as you can see, I am trying to capture all "error" level messages (and<br>
discard lower levels) from<br>
child loggers into the "errorAppender", even though child loggers are<br>
at trace level, which would log to their own siftAppenders.<br>
<br>
But all the trace logs still get into error appenders, even though the<br>
level is clearly set to "error"<br>
<br>
Could it be due to the use of marker or siftappender in my log like<br>
<br>
log.trace(marker,message)<br>
<br>
but the error logger should still check the level and disregard any<br>
marker info.<br>
<br>
Thanks in advance for your help<br>
<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
<br>
</blockquote>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a></blockquote></div><br></div>