From: Mike S. <m...@pe...> - 2005-01-13 06:29:23
|
On Mon, 10 Jan 2005 Jam...@ub... wrote: > I was wondering if it would be possible to throttle messages based > on the rate (number) of messages. This feature would be useful if > you would like to control the number of messages being sent over a > period of time. There's the Limit appender, limiting the number of messages over a given time period: http://log4perl.sourceforge.net/d/Log/Log4perl/Appender/Limit.html And, new with L4p 0.51, there's the Buffer appender, buffering messages until a user-defined trigger gets called: http://log4perl.sourceforge.net/d/Log/Log4perl/Appender/Buffer.html If none of these fits your needs, you can define your own composite appender, just check out the source code of either of the above and extend them with your application-specific logic. -- Mike Mike Schilli m...@pe... |