in reply to Re: Log4Perl issue
in thread Log4Perl issue
Hi,
Yes both the package a and package b has the line
but having get_logger without the package name makes any difference. The same script I have in my development box both are logged separately but when both the code runs at the same time I think the problem is there.
One more information
package a is saved in a file called a.pm and package b is inside a perl script .pl and defined the package b inside the BEGIN block and not returning a 1;
Does that makes any difference.
Yes both the package a and package b has the line
Log::Log4perl::init_and_watch('/etc/log4perl.conf',30); $__PACKAGE__::mylog=Log::Log4perl->get_logger();
but having get_logger without the package name makes any difference. The same script I have in my development box both are logged separately but when both the code runs at the same time I think the problem is there.
One more information
package a is saved in a file called a.pm and package b is inside a perl script .pl and defined the package b inside the BEGIN block and not returning a 1;
Does that makes any difference.
|
---|
In Section
Seekers of Perl Wisdom