Perl: the Markov chain saw | |
PerlMonks |
Re: Log4Perl - ANON issueby cees (Curate) |
on Jan 26, 2004 at 21:26 UTC ( [id://324277]=note: print w/replies, xml ) | Need Help?? |
The try catch block is implemented as an anonymous subroutine which is causing your problem. You can specify the caller depth that Log4perl uses in the log entry.
Just put this line somewhere before the call to the logger. The local should localize this change to only affect this part of your program.
In Section
Seekers of Perl Wisdom
|
|