kreetrapper has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, fellow monks.
I am using Log4perl 1.20 in my project and it worked fine, but then I updated to version 1.24 a couple of days ago and now nothing is logged anymore.
I looked in the changelog and googled/super-searched a bit, but I found nothing that seems to imply a major change in the way Log4perl works. Maybe one of you is experiencing similar problems and can help me understand what I can do to make my program work again. I could probably switch back to version 1.20 but that doesn't seem like the optimal solution.
Here is a reduced test case which worked fine with Log4perl 1.20 but doesn't output anything with Log4perl 1.24.
use strict; use warnings; use Log::Log4perl; # Define a logger my $log = Log::Log4perl->get_logger("abc.def.ghi"); # Define a logger layout my $layout = Log::Log4perl::Layout::PatternLayout->new("%d > %m %n"); # define appender for console output my $appender_screen = Log::Log4perl::Appender->new("Log::Log4perl::App +ender::Screen",name => 'console'); # Set the appender's layout and add it $appender_screen->layout($layout); $log->add_appender($appender_screen); $log->info("This is an info message"); $log->error("This is an error message");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log4perl stops logging after update to 1.24
by broomduster (Priest) on Sep 08, 2009 at 16:19 UTC | |
|
Re: Log4perl stops logging after update to 1.24
by Anonymous Monk on Sep 08, 2009 at 15:53 UTC | |
by kreetrapper (Scribe) on Sep 14, 2009 at 06:52 UTC | |
by Anonymous Monk on Sep 14, 2009 at 11:00 UTC | |
by kreetrapper (Scribe) on Sep 21, 2009 at 07:35 UTC |