From: Ford, A. <and...@AG...> - 2006-10-11 17:38:00
|
Looks like init and init_and_watch return differently. init_and_watch seems to return false even though the log gets initialized. Here's test program that illustrates. On my system, (Log4perl 1.03, HP-UX 11, perl 5.8.7), I get=20 Failure reading log config /etc/URLbot4.log4perl.conf: at /home/forda/Log4perlBug line 6. well OK well OK #!/usr/local/perl-5.8.7/bin/perl use warnings; use strict; use Log::Log4perl qw(get_logger :levels :no_extra_logdie_message); my $log4perlconfig =3D "/etc/URLbot4.log4perl.conf"; Log::Log4perl->init_and_watch($log4perlconfig,'USR2') or warn "Failure reading log config $log4perlconfig: $!"; if(Log::Log4perl->initialized()) { # Yes, Log::Log4perl has already been initialized print "well OK\n"; } else { die "logs unitialized...: $!"; } Log::Log4perl->init($log4perlconfig) or warn "Failure reading log config $log4perlconfig: $!"; if(Log::Log4perl->initialized()) { # Yes, Log::Log4perl has already been initialized print "well OK\n"; } else { die "logs unitialized...: $!"; } Andy Ford EEMS x56647 and...@ag... ---------------------------------------------------------------------------= ---------- 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. ---------------------------------------------------------------------------= ---------- |