[log4perl-devel] Different log layout per level ?

2008-02-09 Thread Kristis Makris
Hello, I recently started toying with log4perl, and incorporated it in an application. I need the capability to define a log layout for WARN messages that is a lot more user-friendly/readable than the others. After reading the documentation at: http://log4perl.sourceforge.net/releases/Log-Log4pe

Re: [log4perl-devel] Different log layout per level ?

2008-02-09 Thread Kevin M. Goess
It's possible, but it's probably less than straightforward. Each appender has exactly one layout, so what you'll need to do is create two appenders, and use some combination of thresholds and filters so that one appender only logs WARN messages and the other appender logs everything else.

Re: [log4perl-devel] Different log layout per level ?

2008-02-09 Thread Mike Schilli
On Sat, 9 Feb 2008, Kevin M. Goess wrote: > It's possible, but it's probably less than straightforward. Each > appender has exactly one layout, so what you'll need to do is create > two appenders, and use some combination of thresholds and filters so > that one appender only logs WARN messages an