[logback-user] simple question driving me crazy..
madhoyos at gmail.com
Wed Sep 19 21:19:47 CEST 2007
Thanks for responding promptly.
I actually figured this out right after I sent out the posting. But your
response reassures me that this is the correct approach.
Thank you again mat.
On 9/19/07, matg <matthieu.guamis at axege.com> wrote:
> If I understand, you want to do something like logging to different
> appenders in function of message level, so maybe you should use
> http://logback.qos.ch/manual/filters.html Filters which allow to use the
> root logger with different appenders (in this example, all messages are
> written to the console, message with level equal to ERROR only are written
> to file "error-log.txt", message with level equal to WARN only are written
> to "warn-log.txt" etc.)
> Hope this helps
> http://www.nabble.com/file/p12781846/example.txt example.txt
> Alex Hoyos wrote:
> > I need to have different ROOT logger levels (INFO,DEBUG,WARN,etc) to
> > different appenders (file..)
> > something like:
> > <configuration>
> > <!-- ..... appender defintitions ---- >
> > <root>
> > <level value="debug" />
> > <appender-ref ref="STDOUT" />
> > </root>
> > <another root???>
> > <level value="error" />
> > <appender-ref ref="errorLog" />
> > </root>
> > </configuration>
> > But I'm not sure how to do this syntax in the XML config file. Looked
> > through the documentation and examples, and I did not see it.
> > Any one can help, I appreciate it...
> > --
> > Regards,
> > Alex Hoyos
> > _______________________________________________
> > Logback-user mailing list
> > Logback-user at qos.ch
> > http://qos.ch/mailman/listinfo/logback-user
> View this message in context:
> Sent from the Logback User mailing list archive at Nabble.com.
> Logback-user mailing list
> Logback-user at qos.ch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user