Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: parameter for log4perl

by Khen1950fx (Canon)
on Jun 12, 2012 at 14:31 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://975815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-29 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found