From: Ronald F. <yn...@mm...> - 2008-06-19 12:33:26
|
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 <ro...@em...> + 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) |