Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 49785
Status: resolved
Priority: 0/
Queue: Log-Dispatch

People
Owner: Nobody in particular
Requestors: yury.buldakov [...] gmail.com
Cc:
AdminCc:

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



Subject: Fatal error if trying to log using Log::Dispatch::ApacheLog with level 1 (error)
Date: Thu, 17 Sep 2009 18:31:33 +0300
To: bug-Log-Dispatch [...] rt.cpan.org
From: "Yury A. Buldakov" <yury.buldakov [...] gmail.com>
I'm using apache 1.41 with mod_perl 1.30 When I'm trying to use Log::Dispatch::ApacheLog to do logging to apache's log and call $logger->log( 1, 'some message' ) I got fatal error: --- cut --- [Thu Sep 17 13:13:29 2009] [error] Error during compilation of /home/porta-admin/apache/index.html:\tCan't locate object method "err" via package "Apache::Log::Server" at /usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch/ApacheLog.pm line 59.\t\tStack:\t [/usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch/ApacheLog.pm:59]\t [/usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch/Output.pm:46]\t [/usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch.pm:198]\t [/usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch.pm:146]\t [/usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch.pm:121]\t [/home/porta-admin/site_lib/Porta/Log.pm:124]\t [/home/porta-admin/site_lib/Porta.pm:66]\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/site_lib/Porta.pm:73]\tBEGIN failed--compilation aborted at /home/porta-admin/site_lib/Porta.pm line 73.\t\tStack:\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/home/porta-admin/site_lib/Porta.pm:73]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/site_lib/Porta.pm:73]\tCompilation failed in require at /home/porta-admin/site_lib/Porta/AccessConfig.pm line 9.\t\tStack:\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:9]\t [/home/porta-admin/site_lib/Porta.pm:9]\t [/home/porta-admin/site_lib/Porta.pm:9]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/site_lib/Porta.pm:9]\tBEGIN failed--compilation aborted at /home/porta-admin/site_lib/Porta/AccessConfig.pm line 9.\t\tStack:\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:9]\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:9]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:9]\tCompilation failed in require at /home/porta-admin/apache/index.html line 252.\t\tStack:\t [/home/porta-admin/apache/index.html:252]\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:252]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/site_lib/Porta/AccessConfig.pm:252]\tBEGIN failed--compilation aborted at /home/porta-admin/apache/index.html line 252.\t\tStack:\t [/home/porta-admin/apache/index.html:252]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:816]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:440]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275]\t [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868]\t [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822]\t [(eval 39):8]\t [/home/porta-admin/apache/index.html:252]\t\t\tStack: [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:450], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:246], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Request.pm:211], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:97], [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:275], [/usr/local/lib/perl5/site_perl/5.8.9/Class/Container.pm:353], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/Interp.pm:348], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:868], [/usr/local/lib/perl5/site_perl/5.8.9/HTML/Mason/ApacheHandler.pm:822], [(eval 39):8], [/dev/null:0]\n --- cut --- Also I've figured that for levels higher then 3 there is next in apache's log: --- cut --- [Thu Sep 17 13:27:16 2009] [warn] ### testing level 2 logging [Thu Sep 17 13:27:16 2009] [notice] ### testing level 3 logging Use of uninitialized value in hash element at /usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch.pm line 221. Use of uninitialized value in hash element at /usr/local/lib/perl5/site_perl/5.8.9/Log/Dispatch.pm line 221. --- cut --- Last two lines reflects levels 4 and 5. Log::Dispatch version is 2.25
On Thu Sep 17 11:32:08 2009, yury.buldakov@gmail.com wrote: Show quoted text
> I'm using apache 1.41 with mod_perl 1.30 > When I'm trying to use Log::Dispatch::ApacheLog to do logging to > apache's log and call $logger->log( 1, 'some message' ) I got fatal error:
Sorry for the slow response, but note that the code above is not valid. Please read the docs to see how to use Log::Dispatch. I'm marking this ticket as resolved.