On Sun, 23 Jan 2011, David Christensen wrote:
> I've found that: $Log::Log4perl::caller_depth
> ... does not seem to affect the following layout placeholders:
> %c Category of the logging event
> %T A stack trace of functions called
Hi David,
sorry for the delay. There's a subtle differe
Mike Schilli wrote:
> There's a section in the Log4perl manual thattalks about this (not easy to
> find, though):
> http://search.cpan.org/~mschilli/Log-Log4perl-1.31/lib/Log/Log4perl.pm#Using_Log::Log4perl_with_wrapper_functions_and_classes
>
Thank you for the reply. :-)
Yes, I read that.
On Sun, 30 Jan 2011, David Christensen wrote:
> Putting the 'use' statement before the 'BEGIN' statement makes Perl
> happy, but %c still shows the Helper package, not 'main':
Ugh, that doesn't work in :easy mode, sorry about that.
What you want to do instead is use the long form with get_logger
Mike Schilli wrote:
> We get tons of spam on this list, so it's moderated.
That's what I thought. I'll post to the list and BCC you.
> What you want to do instead is use the long form with get_logger():
> package Helper;
> use Log::Log4perl qw(get_logger);
> Log::Log4perl->wrapper_