From: Marc Z. <mar...@gm...> - 2013-03-15 20:54:33
|
I have a program that configures a basic Log4perl config so that I have some sane logging until I'm able to read in the config file with the final configuration. I'm getting an error when calling Log::Log4perl->init() the second time that I cannot seem to track down. From the reading of the docs, this is a valid use case. Its a pretty basic perl script, not using fork() or threads or anything, and running from the commandline, not mod_perl or something like that. The error I get is: Can't call method "log" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/Log/Log4perl/Appender.pm line 189. This is generated when I do the second Log::Log4perl->init(filename) call. The first call to init passes in a string with the basic configuration. Anyone have any ideas what the issue might be? I'm running Log4perl-1.40, using Red Hat 5 64-bit. |