Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 72056
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: NIERLEIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.33
Fixed in: (no value)



Subject: Mandatory parameters 'level', 'message' missing in call to Log::Dispatch::Output::log
Hi, after switching from Catalyst::Log::Log4perl to Log::Log4perl::Catalyst i get the error "Mandatory parameters..." error. See the attached error.txt for the full error message. The problem seems to be in the log4perl.appender.InfoLog.Threshold=INFO line. There is no problem without the threshold or when changing the threshold to DEBUG or ALL. I use the standard __PACKAGE__->log(Log::Log4perl::Catalyst->new('l4p.conf')); from my catalyst application. Thanks, Sven
Subject: error.txt
Mandatory parameters 'level', 'message' missing in call to Log::Dispatch::Output::log at /home/sven/perl5/lib/perl5/i486-linux-gnu-thread-multi/Params/ValidateXS.pm line 8 Params::Validate::__ANON__('Mandatory parameters \'level\', \'message\' missing in call t...') called at /home/sven/perl5/lib/perl5/Log/Dispatch/Output.pm line 39 Log::Dispatch::Output::log(undef) called at /home/sven/perl5/lib/perl5/Log/Log4perl/Appender.pm line 208 Log::Log4perl::Appender::log_cached('Log::Log4perl::Appender=HASH(0xc4abc08)', undef) called at /home/sven/perl5/lib/perl5/Log/Log4perl/Appender/Buffer.pm line 84 Log::Log4perl::Appender::Buffer::flush('Log::Log4perl::Appender::Buffer=HASH(0xc4e2428)') called at /home/sven/perl5/lib/perl5/Log/Log4perl/Appender.pm line 274 Log::Log4perl::Appender::AUTOLOAD('Log::Log4perl::Appender=HASH(0xc4ab998)') called at /home/sven/perl5/lib/perl5/Log/Log4perl/Catalyst.pm line 126 Log::Log4perl::Catalyst::_flush('Log::Log4perl::Catalyst=HASH(0xc34c640)') called at /home/sven/perl5/lib/perl5/Catalyst.pm line 1966 Catalyst::handle_request('MyApp', 'env', 'HASH(0xb9e2fe0)') called at /home/sven/perl5/lib/perl5/Catalyst/Engine/HTTP.pm line 395 Catalyst::Engine::HTTP::_handler('Catalyst::Engine::HTTP=HASH(0xb9edbc0)', 'MyApp', 3000, 'GET', '/thruk/', 'HTTP/1.1') called at /home/sven/perl5/lib/perl5/Catalyst/Engine/HTTP.pm line 292 Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP=HASH(0xb9edbc0)', 'MyApp', 3000, undef, 'HASH(0xb1e8e58)') called at /home/sven/perl5/lib/perl5/Catalyst.pm line 2399 Catalyst::run('MyApp', 3000, undef, 'HASH(0xb1e8e58)') called at /home/sven/perl5/lib/perl5/Catalyst/ScriptRole.pm line 49 Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0xad24978)') called at /home/sven/perl5/lib/perl5/Catalyst/Script/Server.pm line 142 Catalyst::Script::Server::__ANON__() called at /home/sven/perl5/lib/perl5/Catalyst/Restarter/Forking.pm line 20 Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0xb1f7470)') called at /home/sven/perl5/lib/perl5/Catalyst/Restarter.pm line 89 Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0xb1f7470)') called at /home/sven/perl5/lib/perl5/Catalyst/Script/Server.pm line 189 Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0xad24978)') called at /home/sven/perl5/lib/perl5/Catalyst/ScriptRunner.pm line 20 Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'MyApp', 'Server') called at ./script/thruk_server.pl line 21
Subject: log4perl.conf
Download log4perl.conf
application/octet-stream 782b

Message body not shown because it is not plain text.

Thanks for reporting this, turned out to be a bug in Log4perl's composite appender code. I've applied a fix in https://github.com/mschilli/log4perl/commit/14dfa231aee7f98b2091cf07ac64169fced026ab and would appreciate if you could give this tarball a try: https://github.com/mschilli/log4perl/tarball/rt72056 Let me know if this solves the problem you were seeing. -- Mike
Subject: Re: [rt.cpan.org #72056] Mandatory parameters 'level', 'message' missing in call to Log::Dispatch::Output::log
Date: Mon, 31 Oct 2011 10:35:49 +0100
To: bug-Log-Log4perl [...] rt.cpan.org
From: Sven Nierlein <sven [...] nierlein.de>
Hi Mike, The new tarball solves the problem. Thanks for the fast response, Sven
Hello mschilli, Could you please release a new version of the distribution including this fix ? Thank you for your work :)
Just pushed 1.34 to CPAN :).