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};
  • Comment on Re: Log4perl add_appender issues ( use %Log::Log4perl::Logger::APPENDER_BY_NAME)
  • Download Code