Elmah for logging successful web requests
-
25-09-2019 - |
Question
I really like elmah for logging errors but how about just the opposite? I want to use elmah to log successfull http requests (status code 200) for the purpose of web analytics. Anyone know where in the source code I may be able to do this?
Solution
You might like to use this instead of elmah http://stickybeak.codeplex.com/
OTHER TIPS
Why not just use custom logging in IIS 7.0?
I'm thinking that Elmah won't be able to log certain requests (especially if you use something like output caching -- the ASP.NET runtime won't get called at all). If you hook into IIS, you'll be able to get a plethora of information about each request.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow