Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Log4perl add_appender issues ( use %Log::Log4perl::Logger::APPENDER_BY_NAME)

by beech (Parson)
on Nov 29, 2017 at 01:54 UTC ( [id://1204491]=note: print w/replies, xml ) Need Help??


in reply to Log4perl add_appender issues

Any Ideas on what the issue might be / how to fix it? Thanks!

Hi,

For an explanation read https://metacpan.org/pod/Log::Log4perl#Access-defined-appenders

The code fix is to switch to

my $appender = $Log::Log4perl::Logger::APPENDER_BY_NAME{SCREENOUT};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found