YEP... <br>Thanks for responding promptly. <br>I actually figured this out right after I sent out the posting.&nbsp; But your response reassures me that this is the correct approach. <br><br>Thank you again mat. <br><br><div><span class="gmail_quote">
On 9/19/07, <b class="gmail_sendername">matg</b> &lt;<a href="mailto:matthieu.guamis@axege.com">matthieu.guamis@axege.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi,<br><br>If I understand, you want to do something like logging to different<br>appenders in function of message level, so maybe you should use<br><a href="http://logback.qos.ch/manual/filters.html">http://logback.qos.ch/manual/filters.html
</a> Filters&nbsp;&nbsp;which allow to use the<br>root logger with different appenders (in this example, all messages are<br>written to the console, message with level equal to ERROR only are written<br>to file &quot;error-log.txt&quot;, message with level equal to WARN only are written
<br>to &quot;warn-log.txt&quot; etc.)<br><br>Hope this helps<br><a href="http://www.nabble.com/file/p12781846/example.txt">http://www.nabble.com/file/p12781846/example.txt</a> example.txt<br><br><br>Alex Hoyos wrote:<br>&gt;
<br>&gt; I need to have different ROOT logger levels (INFO,DEBUG,WARN,etc) to<br>&gt; different appenders (file..)<br>&gt;<br>&gt; something like:<br>&gt;<br>&gt;<br>&gt; &lt;configuration&gt;<br>&gt;<br>&gt; &lt;!--&nbsp;&nbsp;.....&nbsp;&nbsp;appender defintitions ---- &gt;
<br>&gt;<br>&gt;&nbsp;&nbsp; &lt;root&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;level value=&quot;debug&quot; /&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=&quot;STDOUT&quot; /&gt;<br>&gt;&nbsp;&nbsp; &lt;/root&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;another root???&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;level value=&quot;error&quot; /&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=&quot;errorLog&quot; /&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/root&gt;<br>&gt;<br>&gt;<br>&gt; &lt;/configuration&gt;<br>&gt;<br>&gt;<br>&gt; But I&#39;m not sure how to do this syntax in the XML config file.&nbsp;&nbsp;Looked
<br>&gt; through the documentation and examples, and I did not see it.<br>&gt; Any one can help, I appreciate it...<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Regards,<br>&gt;<br>&gt; Alex Hoyos<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Logback-user mailing list<br>&gt; <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>&gt; <a href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</a><br>&gt;
<br>&gt;<br><br>--<br>View this message in context: <a href="http://www.nabble.com/simple-question-driving-me-crazy..-tf4481778.html#a12781846">http://www.nabble.com/simple-question-driving-me-crazy..-tf4481778.html#a12781846
</a><br>Sent from the Logback User mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>Logback-user mailing list<br><a href="mailto:Logback-user@qos.ch">
Logback-user@qos.ch</a><br><a href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Alex Hoyos