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.
On Feb 8, 2008, at 5:01 PM, Kristis Makris wrote: > 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-Log4perl/docs/html/Log/ > Log4perl.html#1d6b5 > > and the tutorial, I haven't seen a way to define such different > layouts > per level. Did I just miss it ? Is this possible using log4perl ? > > Thanks, > Kristis > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > log4perl-devel mailing list > log4perl-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/log4perl-devel -- Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510) 525-5217 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel