On Tue, 6 Dec 2011, Danny Dev wrote:
I think perhaps what I need is to enable buffering at the start of each request, and disable it at the end of the request, is there some way to do this or does someone have another solution?
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 scope and run a flush() at the end. Hope that makes sense! -- -- Mike Mike Schilli m...@perlmeister.com
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 buffering it works fine but the messages are split up into too many individual emails.
You'reI took a look at some of the information for mod_perl but it doesn't quite seem to pertain, and in my case the FCGIs are only persistent for a number of requests then eventually exit. cheers for any advice Danny
------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel