Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: How to pick an appender selectively in Log::Log4perl

by crusty_collins (Friar)
on Feb 11, 2016 at 16:59 UTC ( #1154986=note: print w/replies, xml ) Need Help??

in reply to How to pick an appender selectively in Log::Log4perl

You can select what you want. I would do it like this.
my $log_conf = qq( log4perl.rootLogger = DEBUG, LOG log4perl.appender.LOG = Log::Log4perl::Appender: +:File log4perl.appender.LOG.filename = $ref->{config}->{Log} log4perl.appender.LOG.mode = append log4perl.appender.LOG.layout = Log::Log4perl::Layout::P +atternLayout log4perl.appender.LOG.layout.ConversionPattern = %d %p %m %n );
"We can't all be happy, we can't all be rich, we can't all be lucky and it would be so much less fun if we were. There must be the dark background to show up the bright colours." Jean Rhys (1890-1979)

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2023-12-06 21:26 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (32 votes). Check out past polls.