YEP... <br>Thanks for responding promptly. <br>I actually figured this out right after I sent out the posting. 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> <<a href="mailto:matthieu.guamis@axege.com">matthieu.guamis@axege.com</a>> 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 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 "error-log.txt", message with level equal to WARN only are written
<br>to "warn-log.txt" 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>>
<br>> I need to have different ROOT logger levels (INFO,DEBUG,WARN,etc) to<br>> different appenders (file..)<br>><br>> something like:<br>><br>><br>> <configuration><br>><br>> <!-- ..... appender defintitions ---- >
<br>><br>> <root><br>> <level value="debug" /><br>> <appender-ref ref="STDOUT" /><br>> </root><br>><br>> <another root???><br>> <level value="error" />
<br>> <appender-ref ref="errorLog" /><br>> </root><br>><br>><br>> </configuration><br>><br>><br>> But I'm not sure how to do this syntax in the XML config file. Looked
<br>> through the documentation and examples, and I did not see it.<br>> Any one can help, I appreciate it...<br>><br>><br>> --<br>> Regards,<br>><br>> Alex Hoyos<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>>
<br>><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