[log4perl-devel] Need help

2008-05-23 Thread Vinodhini M
Hi,

 

I installed Log4Perl module and tried to init more than one config file,
only one log file is updating rest of two are empty. Please help me on how
to init multiple config files and logging to multiple log files.

 

Thanks in advance.

 

Regards,

 

Praveen G

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel


Re: [log4perl-devel] Need help

2008-05-23 Thread Mike Schilli
On Fri, 23 May 2008, Vinodhini M wrote:

> I installed Log4Perl module and tried to init more than one config
> file, only one log file is updating rest of two are empty. Please help
> me on how to init multiple config files and logging to multiple log
> files.

Currently, only one configuration file is supported, if you call init()
more than once, the first configuration will be overwritten by the
second.

This might change, but until we have a solution, you can combine your
config files by reading them into a string and feeding that to
init(\$string).

-- Mike

Mike Schilli
[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel


[log4perl-devel] Multiple ‘use’ statements

2008-05-23 Thread Father Chrysostomos

Hello.

Log::Log4perl (v. 1.16 as of this message) ignores multiple ‘use’  
statements. Looking in the Changes file, I see that this is intentional:


1.04 2006/02/26
...
*  (ms) Multiple calls to import (usually happens if 'use L4p' gets
called twice within the same namespace) caused nasty  
warnings,
bug reported by Greg Olszewski. Fixed by ignoring  
subsequent

calls from the same package to import().

But this breaks Business::Shipping’s test suite. So I’ve attached a  
patch that allows multiple ‘use’ statements to work, and also prevents  
the subroutine redefinition warnings. I’ve also included tests for  
both. I hope this is helpful.



Father Chrysostomos



020Easy.t
Description: Binary data


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel


Re: [log4perl-devel] Multiple ‘use’ statements

2008-05-23 Thread Father Chrysostomos

Oops! I attached the wrong file.



ll4p.diff
Description: Binary data




On May 23, 2008, at 10:27 PM, Father Chrysostomos wrote:


Hello.

Log::Log4perl (v. 1.16 as of this message) ignores multiple ‘use’  
statements. Looking in the Changes file, I see that this is  
intentional:


1.04 2006/02/26
   ...
   *  (ms) Multiple calls to import (usually happens if 'use L4p' gets
   called twice within the same namespace) caused nasty  
warnings,
   bug reported by Greg Olszewski. Fixed by ignoring  
subsequent

   calls from the same package to import().

But this breaks Business::Shipping’s test suite. So I’ve attached a  
patch that allows multiple ‘use’ statements to work, and also  
prevents the subroutine redefinition warnings. I’ve also included  
tests for both. I hope this is helpful.



Father Chrysostomos

<020Easy.t>


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel