开发者

Enterprise Library Email Trace Listener is killing our mail server

We're doing stress testing of our application right now and when it blows up we wind up hammerin开发者_开发问答g our Exchange server with exception notifications sent via EntLib 4.0 Email Trace Listener.

What strategies can we use to throttle the emails being sent. Is there anything in EntLib for this or does it have to be something configured in Exchange? I'm hoping this can be solved in our App so we don't have to tell the client to make changes to their email server config.

It's either that, or we just disable the Email Trace Listener, which I don't think is a very good option at all.


The e-mail trace listener is really geared up for high throughput of notifications. If you are getting huge numbers of exceptions then this may not be the appropriate mechanism for you.


You should ask yourself what the objective of logging through email was. Then you can adjust the level of severity of log messages (Critical, Error, Warning, Info etc) that need to go through to meet your logging objectives. Notice, 'All' is the default option. You can do this at the level of the TraceListener or by setting up Filters on log categories.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜