Throttling/Rollup feature in EventLogAppender

2008-05-02 Thread Pranav Varia
Is there a Throttling feature available or planned in EventLogAppender.

If we log to event log a message that could potentially be logged at frequency 
of one per incoming request to my web application, it could flood the event log 
with millions of messages if/when things go wrong.  If there was a = way to 
roll them up every x seconds into a single event log message (with a count of 
how many messages where rolledup), it would be useful to me.

Is there any such feature? Or workaround?

Regards

Pranav



Re: Throttling/Rollup feature in EventLogAppender

2008-05-02 Thread Ron Grabowski
It looks like someone has done something similar with the SmtpAppender:

http://marc.info/?l=log4net-user&m=120887073724259&w=2

You could use the BufferingForwardingAppender to capture the messages then send 
aggregate information when its time to flush the buffer.


- Original Message 
From: Pranav Varia <[EMAIL PROTECTED]>
To: "log4net-user@logging.apache.org" 
Sent: Friday, May 2, 2008 5:00:08 PM
Subject: Throttling/Rollup feature in EventLogAppender

 
Is there a Throttling feature available or planned in
EventLogAppender.
If we log to event log a message that could potentially
be logged at frequency of one per incoming request to my web application, it
could flood the event log with millions of messages if/when things go wrong. 
If there was a = way to roll them up every x seconds into a single event log
message (with a count of how many messages where rolledup), it would be useful
to me.
Is there any such feature? Or workaround?
Regards
Pranav

Re: Throttling/Rollup feature in EventLogAppender

2008-05-02 Thread Jerry Shea
Hi Pranav,

James Wilkinson and I worked up some code to do this. See
http://markmail.org/message/pahnqti7yq4xoz7m

I am currently the bottleneck on this having not responded to James' last
message :(. I'll get moving and hopefully we can contribute this code to the
community soon.

Cheers, Jerry

-- Forwarded message --
From: Pranav Varia <[EMAIL PROTECTED]>
To: "log4net-user@logging.apache.org" 
Date: Fri, 2 May 2008 14:00:08 -0700
Subject: Throttling/Rollup feature in EventLogAppender


>  Is there a Throttling feature available or planned in EventLogAppender.
>
> If we log to event log a message that could potentially be logged at
> frequency of one per incoming request to my web application, it could flood
> the event log with millions of messages if/when things go wrong.  If there
> was a = way to roll them up every x seconds into a single event log message
> (with a count of how many messages where rolledup), it would be useful to
> me.
>
> Is there any such feature? Or workaround?
>
> Regards
>
> Pranav
>
>
>
>