Hello, I'm currently initializing my logger like this:
Log::Log4perl->easy_init( {level => $log_level, file => ($ENV{ARTS_LOG}||'STDOUT'), layout => '%M(%L) %m%n' } ); I would like to include some indication of the log level in the layout, for instance that it says "ERROR" or "DEBUG" in the beginning. In the perldoc I didn't find any layout option which would let me indicate the log level. Does someone know whether it is possible to have the level printed when using PatternLayout? Regards Ronald -- Ronald Fischer <[EMAIL PROTECTED]> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel