albertocolom / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Send Daily Digest Email #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We get thousands of exceptions due to the heavy load on our site. Sending
an email per exception is too cumbersome. Ideally, we could have ELMAH send
a daily summary.

Or, it could send an email for the first time an exception occurs in a
certain time-period (say a day).

Original issue reported on code.google.com by haac...@gmail.com on 13 Jul 2007 at 4:40

GoogleCodeExporter commented 8 years ago
Have you thought about how this could or needs to be implemented? For example, 
what 
should the digest mail contain? I suppose the error message only with a link to 
the 
error page would suffice because a full detailed listing otherwise would make 
it as 
noisy as receiving every error as an individual mail. When and how would the 
digest 
mail be sent? For example, should it be some daemon process that polls the 
error log 
daily or should it be timer-based thread within the application? Come to think 
of 
it, wouldn't it be more interesting to have this as an RSS feed? That way, no 
daemon 
or script is required and each item of the channel would contain the summary 
for a 
single day as its detail. The RSS reader can be told to poll daily.

Original comment by azizatif on 16 Jul 2007 at 7:58

GoogleCodeExporter commented 8 years ago
Making it daily would be tricky for sites that don't have a lot of traffic as 
we'd
need a scheduler.For now, I think it would make sense to avoid that and allow 
it to
be triggered by an exception. 

For examle, if the last email was sent more than 24 hrs ago, the next exception
triggers a digest with stats (#of messages logged) and a list of links like you 
said.

An RSS feed is an even better idea.

Original comment by haac...@gmail.com on 17 Jul 2007 at 4:17

GoogleCodeExporter commented 8 years ago
And the digest information like stats and links would have to be persisted 
somewhere 
to survive re-starts. Considering that this could become a complex feature and 
that 
you like the idea of it as an RSS feed anyway then I suggest to proceed with 
the 
latter. It will be a lot simpler to implement and will give the biggest bang 
for the 
buck of time invested. It would also make it possible to fine-tune the feed 
such the 
digest information interval is configurable from the outside (e.g. weekly, 
daily, 
hourly, etc). A digest mailing module could be layered on top of this as just 
an 
external script that can scheduled to poll the feed and mail away.

Original comment by azizatif on 17 Jul 2007 at 3:11

GoogleCodeExporter commented 8 years ago
Created Issue #18 based on the discussion so far to add a dialy digest RSS feed.

Original comment by azizatif on 20 Jul 2007 at 7:52

GoogleCodeExporter commented 8 years ago
So this is closed? Please change the status then.

Original comment by simone.b...@gmail.com on 5 Sep 2007 at 12:40

GoogleCodeExporter commented 8 years ago
It's reasonable to close this issue considering that it can be mitigated with 
use of 
the digest RSS feed and error filtering. Haacked?

Original comment by azizatif on 5 Sep 2007 at 1:35

GoogleCodeExporter commented 8 years ago
I agree, this would add unnecessary complexity to the code.

Original comment by simone.b...@gmail.com on 5 Sep 2007 at 1:42

GoogleCodeExporter commented 8 years ago
Agreed...for now. :)

Original comment by haac...@gmail.com on 5 Sep 2007 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by azizatif on 5 Sep 2007 at 3:41