[logback-user] Best Practice to Setup Multiple Log Files for Multiple Classes

Chris Pratt thechrispratt at gmail.com
Thu Oct 11 01:14:29 CEST 2012

Set up an appender for each file you want created, including a base
appender that goes to your default file.

Set up loggers that point the appropriate class log statements to the
appropriate appender.

On Wed, Oct 10, 2012 at 4:10 PM, Dan Franks <dan.franks at gmail.com> wrote:

> Hello all,
> I think my question has been answered before, but I will be damned if
> I can find it.  Basically I have three classes (orangeClass,
> purpleClass, greenClass) that I want to log to their respective files
> (orangeFile, purpleFile, and greenFile).
> I would need to have a default log file that catches everything not
> coming from those classes as well.  The last requirement is that I can
> change each one to debug/warn/info independently of each other.
> Can you point me in the right direction?
> Thanks in advance,
> Dan
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20121010/402a7467/attachment.html>

More information about the Logback-user mailing list