From: Maxim M. <mal...@ya...> - 2003-06-19 13:15:33
|
Hi everyone: I'm using Log4perl (v 0.34) quite extensively in my modules and it works just great on my Win2K machine with Perl 5.6.0 and 5.8.0. I installed it using PPD from this site. I have recently installed my script on the IIS 5.0 with PerlEx.dll for the Active State Perl 5.6.0 build 633 and have intermittent problems with Log4perl being unable to precompile whenever I change the script. I'm using Log::Dispatch::File as my Appender and the error seems to be related to it: Precompiler: Eval Error: Package:[PerlEx::Precompiler::c_::wwwroot::archive::cgi_2dbin::survey_asp] File:[C:\wwwroot\archive\cgi-bin\survey.asp] Error:[Can't call method "log" on an undefined value at c:/Perl/site/lib/Log/Log4perl/Appender.pm line 177. ] Precompiler: Returning -1 at 594 My config file works fine with the regular Perl: ======================================================= log4perl.logger = INFO, Logfile # appender log4perl.appender.Logfile = Log::Dispatch::File log4perl.appender.Logfile.filename = logs/bdb.log log4perl.appender.Logfile.layout = Log::Log4perl::Layout::PatternLayout log4perl.appender.Logfile.layout.ConversionPattern = %d %X{IP} %p %F{1}:%L (%M) => %m%n ======================================================= The module where Log4perl is called is inside the BEGIN block and it looks like like the Appender's new method fails to create an object correctly. If I restart IIS, the error goes away but I feel uncomfortable to use the script in production without knowing what's causing the problem. Are there any patches I need to apply to use Log4perl with PerlEx? Any help is greatly appreciated. Thanks, ===== Maxim Maltchevski __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |