[log4perl-devel] log4perl buffering with semi persistent scripts

2011-12-06 Thread Danny Dev
I'm using log4perl in FCGI scripts that are semi-persistent, they go up and down depending on load. I have an appender that sends email and I'd like it to be buffered. However if I set it to buffered the emails are never sent, except sometimes when the process is killed.  If  I disable

Re: [log4perl-devel] log4perl buffering with semi persistent scripts

2011-12-07 Thread Danny Dev
You didn't mention the email appender that you are using, specific solutions would require looking into the appender's documentation and figure out if it provides a method to flush buffered/pending messages. If that's available, then I'd recommend encapsulating request handling into a function

Re: [log4perl-devel] log4perl buffering with semi persistent scripts

2011-12-07 Thread Danny Dev
Ahh may have found it, it looks like http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#92664 using appender_by_name lets me call flush on it cheers - Original Message - From: Danny Dev dannydev...@yahoo.com To: Mike Schilli m...@perlmeister.com Cc: log4perl-devel