开发者

Elmah - frequency cap / limit #errors logged in given interval

Looking at implementing Elmah but I cant see anyway to limit the number of errors logged if they 开发者_如何学Pythonrise above a certain threshold?

Basically thinking about a scenario where some automated process (unintended, or malicious) generates a ton of errors in a short period of time.

We will be logging to a db (probably MySQL), rather than sending emails, but couldnt see any info on anyway to set any max limits - ideally I'd like to say x thousand in 5 min interval rather than just rely on crashing my error db connection. The server we log errors to will probably also run a few other servioces / functions we wont want to lose should a ton of errors get generated

Is this something others have considered / solved, or ius the threshold effectively so high it is irrelevant? I imagine it would be vital if you leave the error reporting on?


These are the closest things I could find...

And here is an example of doing it via subclass of the ELMAH logger:

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜