<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Actually, recursion isn't really a problem and is pretty easy to handle. The problem is that you are in the middle of configuring your logging system and trying to log, so what is supposed to happen to the log event? The components to process it aren't fully in place yet. Ceki handles that by detecting the attempt to create the logger and generating a nastygram. </span><div>
<font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">Ralph<br></font><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 9:46 AM, TJ Rothwell <span dir="ltr"><<a href="mailto:tj.rothwell@gmail.com">tj.rothwell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The danger of an appender producing messages is infinite recursion.<div><br></div><div>1) App creates message</div><div>
2) Appender processes message</div><div> a) appender forwards message (file/jms/jdbc)</div><div> b) appender generates another message. If this message routes back to this appender, we have infinite recursion.</div>
<div><br></div><div>If the purpose of the message is diagnostic in nature, what is wrong with having a StatusListener to output it?</div><div><br></div><font color="#888888"><div>-- TJ</div></font><div><div></div><div class="h5">
<div><br></div><div><br></div><div><br></div><div><div class="gmail_quote">
On Wed, Nov 16, 2011 at 11:40 AM, ralph.goers @<a href="http://dslextreme.com" target="_blank">dslextreme.com</a> <span dir="ltr"><<a href="mailto:rgoers@apache.org" target="_blank">rgoers@apache.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Rats. That should have read "they are not available to "normal" loggers".<span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">Ralph</font></span><div>
<div><br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 9:31 AM, ralph.goers @<a href="http://dslextreme.com" target="_blank">dslextreme.com</a> <span dir="ltr"><<a href="mailto:rgoers@apache.org" target="_blank">rgoers@apache.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The call to addInfo adds the message to the Status Manager. They are available to "normal" loggers. Please look at <a href="http://logback.qos.ch/manual/configuration.html#viewingStatusMessages" target="_blank">http://logback.qos.ch/manual/configuration.html#viewingStatusMessages</a>. <div>
<br></div><div><font color="#888888">Ralph</font><div><br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 8:27 AM, Steve Cohen <span dir="ltr"><<a href="mailto:scohen@javactivity.org" target="_blank">scohen@javactivity.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
<br>
</div></div></blockquote>
<br>
Thanks, Ceki. I am looking into this. I have a question, though. If you, for example, call addInfo() from an appender, which Logger decides whether or not to log it? The root logger?<div><div></div><div><br>
______________________________<u></u>_________________<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" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<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" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>