DarthVader
DarthVader

Reputation: 55112

IIS Exception logger for every app within

I have used Elmah ,log4net and nlog for logging exceptions.

I m curious how I can catch exceptions for any applications of websites that runs under same IIS.

Do i need to develop and IIS Module and bind it?

Not sure, how can i catch exceptions that happens in any apps within IIS?

I m interested in intercepting the exceptions and such to log myself.

Upvotes: 0

Views: 117

Answers (2)

Vova Bilyachat
Vova Bilyachat

Reputation: 19514

I have never tried but whats stopping you from adding elmah to machine config?

This solution should suitable for you check it http://www.christiaanverwijs.nl/post/2012/06/27/NET-HttpModule-to-log-all-unhandled-exceptions-in-IIS-75-through-Log4NET-(globally-or-per-site).aspx

Upvotes: 0

realnero
realnero

Reputation: 994

You can do that via IIS configuration. Check detailed description here http://technet.microsoft.com/en-us/library/cc725786%28v=ws.10%29.aspx

Upvotes: 1

Related Questions