From: Fernando S. <fer...@gm...> - 2008-02-06 10:49:52
|
Hi all, probably you can give some help on this topic. I'm using the Log-Log4perl-1.14 and I've initialize the following log.conffile: [root@ test]# cat log.conf ############################################################ # A simple root logger with a Log::Log4perl::Appender::File # file appender in Perl. ############################################################ log4perl.rootLogger=ERROR, LOGFILE log4perl.appender.LOGFILE=Log::Log4perl::Appender::File log4perl.appender.LOGFILE.filename=/tmp/myerrs.log log4perl.appender.LOGFILE.mode=append log4perl.appender.LOGFILE.layout=PatternLayout log4perl.appender.LOGFILE.layout.ConversionPattern=%d %p> %F{1}:%L %M - %m%n With this setup, log4perl will catch all Errros and stores it at /tmp/myerrs.log file. My intention is to capture ERRORs and also the INFOs traces. Something like "log4perl.rootLogger=ERROR and INFO, LOGFILE". Is it possible to do ?? if yes, how it does?? Best Regards, Fernando |