[logback-user] simple question driving me crazy..
matthieu.guamis at axege.com
Wed Sep 19 19:07:32 CEST 2007
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
Alex Hoyos wrote:
> I need to have different ROOT logger levels (INFO,DEBUG,WARN,etc) to
> different appenders (file..)
> something like:
> <!-- ..... appender defintitions ---- >
> <level value="debug" />
> <appender-ref ref="STDOUT" />
> <another root???>
> <level value="error" />
> <appender-ref ref="errorLog" />
> 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...
> Alex Hoyos
> Logback-user mailing list
> Logback-user at qos.ch
View this message in context: http://www.nabble.com/simple-question-driving-me-crazy..-tf4481778.html#a12781846
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user