Re: [log4perl-devel] PatternLayout question

2008-06-20 Thread Ronald Fischer
On Thu, 19 Jun 2008 10:19:26 -0700 (PDT), "Mike Schilli" <[EMAIL PROTECTED]> said: > > Does someone know whether it is possible to have the level > > printed when using PatternLayout? > > Sure, that's easy: > > $ perldoc Log::Log4perl::Layout::PatternLayout > > ... > %p Priorit

Re: [log4perl-devel] PatternLayout question

2008-06-19 Thread Mike Schilli
On Thu, 19 Jun 2008, Ronald Fischer wrote: > > 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 th

[log4perl-devel] PatternLayout question

2008-06-19 Thread Ronald Fischer
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 "E