Re: [log4perl-devel] Log::Log4perl::Appender::DBI appender not working

2009-02-12 Thread Mike Schilli
On Thu, 12 Feb 2009, weizhao6...@gmail.com wrote: > When I saw "Log4perl: DBI appender failed to reconnect to database > after 1 attempt at ./tests/testDbCon.pl line 21", I thought it was the > database connection issue. Maybe it'd nice that the actual DBI error > was captured. Yeah, that was a m

[log4perl-devel] UseLog::Log4perl::Layout parameters in Log::Dispatch::Email::MailSender subject

2009-02-12 Thread David Zhao
Hi there, Is there a way to use parameters from Log::Log4perl::Layout::PatternLayout, such as %F, %p, %c, in email subject from Log::Dispatch::Email::MailSender? Something like: layout_class = Log::Log4perl::Layout::PatternLayout layout_pattern = %d %5p %F{1} %L> %m %n layout_email_pattern =

[log4perl-devel] logging in home grown module packages

2009-02-12 Thread David Zhao
Hi there, Got another question: I'd like to enable logging within our home grown module packages, such as: Mycompany:Modules:A, Mycompany:Modules:B, etc, without setting a logger in the configuration file for every module. What's the best way of doing this? Thanks in advance! David

Re: [log4perl-devel] logging in home grown module packages

2009-02-12 Thread Mike Schilli
On Thu, 12 Feb 2009, David Zhao wrote: > Got another question: I'd like to enable logging within our home grown > module packages, such as: Mycompany:Modules:A, Mycompany:Modules:B, > etc, without setting a logger in the configuration file for every > module. If you define a logger like log

Re: [log4perl-devel] UseLog::Log4perl::Layout parameters in Log::Dispatch::Email::MailSender subject

2009-02-12 Thread Mike Schilli
On Thu, 12 Feb 2009, David Zhao wrote: > Is there a way to use parameters from > Log::Log4perl::Layout::PatternLayout, such as %F, %p, %c, in email > subject from Log::Dispatch::Email::MailSender? Something like: Not easily, you would need to write a custom appender. -- Mike Mike Schilli m...@