문제

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.

도움이 되었습니까?

해결책 2

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top