set_uk has asked for the wisdom of the Perl Monks concerning the following question:
I have code wrapped within a try catch block.
The logger instead of using the surrounding method/function name uses ANON when printing with the layout [%d][%p] (%C) %M %m%n.
I guess this is because try is the closest control structure to the call.
If this is the case and the stack is:-
Is there a solution to this?
I get logger messages package::anon. So if I have a number of try statements wrapping my code its hard to see where the log came from using the pattern layout.package method_a try logger_call
Is there a solution to this?
Edited by BazB fixed square brackets
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Log4Perl - ANON issue
by BazB (Priest) on Jan 26, 2004 at 21:08 UTC | |
by set_uk (Pilgrim) on Jan 26, 2004 at 22:39 UTC | |
by set_uk (Pilgrim) on Jan 27, 2004 at 20:42 UTC | |
Re: Log4Perl - ANON issue
by cees (Curate) on Jan 26, 2004 at 21:26 UTC | |
by andreas1234567 (Vicar) on Jan 30, 2004 at 13:10 UTC |
Back to
Seekers of Perl Wisdom