yburge has asked for the wisdom of the Perl Monks concerning the following question:
#!perl; use strict; use warnings; use Log::Log4perl qw(get_logger); Log::Log4perl->init("log.conf"); my $logger = get_logger("logfile.log"); $logger->info("This will get logged\n"); $logger->debug("This will not\n"); print "The quick brown fox jumped over the lazy dogs\n";
log4perl.rootLogger=INFO, LOGFILE log4perl.appender.LOGFILE=Log::Log4perl::Appender::File log4perl.appender.LOGFILE.filename="c:report\logfile.log" log4perl.appender.LOGFILE.mode=append log4perl.appender.LOGFILE.layout=PatternLayout log4perl.appender.LOGFILE.layout.ConversionPattern=[%r] %F %L c - %m%n
If it seems that I'm really dense, well, I won't argue that point. I've read Michael Schilli's tutorial, along with the implementaion doc that comes with Log4perl, but I'm still in a fog. Can someone (anyone?) please help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log4perl config problem
by clwolfe (Scribe) on Jul 06, 2006 at 03:26 UTC | |
|
Re: Log4perl config problem
by Khen1950fx (Canon) on Jul 06, 2006 at 04:16 UTC | |
|
Re: Log4perl config problem
by ftumsh (Scribe) on Jul 06, 2006 at 09:50 UTC |