[logback-user] simple question driving me crazy..

Alex Hoyos madhoyos at gmail.com
Wed Sep 19 21:19:47 CEST 2007


YEP...
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:
>
>
> Hi,
>
> 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:
> http://www.nabble.com/simple-question-driving-me-crazy..-tf4481778.html#a12781846
> Sent from the Logback User mailing list archive at Nabble.com.
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>



-- 
Regards,

Alex Hoyos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20070919/939aa1a2/attachment.htm 


More information about the Logback-user mailing list