Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-02-27 Thread Mike Schilli
On Sun, 30 Jan 2011, David Christensen wrote: I'm not certain if %T is doing the right thing (?). You said there might be a bug. Do you mean that the: Should be fixed in Log4perl 1.32 on CPAN, give it a try. -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread Mike Schilli
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 difference

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread David Christensen
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.

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread Mike Schilli
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

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread David Christensen
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);

[log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-24 Thread David Christensen
log4perl-devel: I'm a new Log::Log4perl user and am trying to create some Log4perl helper logger functions. I've found that: $Log::Log4perl::caller_depth seems to affect the following layout placeholders: %C Fully qualified package (or class) name of the caller %l Fully