Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: parameter for log4perl

by Khen1950fx (Canon)
on Jun 12, 2012 at 14:31 UTC ( #975815=note: print w/replies, xml ) Need Help??


in reply to parameter for log4perl

I would cleanup a bit:
#!/usr/bin/perl -l use strict; use warnings; use Log::Dispatch::FileRotate; use Log::Log4perl qw(get_logger); my $conf = q( log4perl.category.fileLogger = INFO, Logfile log4perl.appender.Logfile = Log::Dispatch::FileRotate log4perl.appender.Logfile.filename = code_review.log log4perl.appender.Logfile.mode = append log4perl.appender.Logfile.max = 15 log4perl.appender.Logfile.size = 15000 log4perl.appender.Logfile.layout = \ Log::Log4perl::Layout::PatternLayout log4perl.appender.Logfile.layout.ConversionPattern = \ [%d (%P) %rms %p] %m%n ); Log::Log4perl->init( \$conf );

Replies are listed 'Best First'.
Re^2: parameter for log4perl
by fionbarr (Friar) on Jun 12, 2012 at 14:52 UTC
    thanks to both

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-01-19 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?