From: Ford, A. <and...@AG...> - 2006-01-27 22:38:48
|
> This looks similar to something that got fixed in Log::Log4perl 1.0. > Are you using the latest from CPAN? Also, make sure it's not picking > up an old version from somewhere else, i.e. >=20 > perl -MLog::Log4perl -le 'print $Log::Log4perl::VERSION' >=20 > should print 1.02. >=20 It's log4perl 1.02.=20 Just started using log4perl about two days ago and I'm having a blast,=20 but I'm hoping that fixing these test problems will fix the problems I'm ha= ving with the Screen appender... I'll post my Screen problem in case it helps: #!/usr/bin/perl use warnings; use strict; use Log::Log4perl qw(get_logger :levels); my $logger =3D get_logger("URLbot"); $logger->level($DEBUG); my $stdout_appender =3D Log::Log4perl::Appender->new( "Log::Log4perl::Appender::Screen", name =3D> "screenlog", stderr =3D> 0); $logger->add_appender($stdout_appender); $logger->fatal("Just checking to see if you're awake"); produces the following output with my HP-UX/Perl 5.6.1 system: Odd number of elements in hash assignment at /opt/perl5//lib/site_perl/5.6.= 1/Log/Log4perl/Appender/Screen.pm line 27. Use of uninitialized value in print at /opt/perl5//lib/site_perl/5.6.1/Log/= Log4perl/Appender/Screen.pm line 32. Zoiks! Andy Ford A.G. Edwards & Sons Technology Group, Inc. Enterprise Event Management 314-955-6647 and...@ag...=20 ---------------------------------------------------------------------------= ---------- A.G. Edwards & Sons' outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other=20 than the recipient. ---------------------------------------------------------------------------= ---------- |