Can anyone give some advice on filtering my Elmah magazine ( http://code.google.com/p/elmah/ )?
Elmah was a very valuable tool in covering my obvious mistakes and shortcomings in my web application.
However, now ... most of Elmah's recordings are not related to my own stupidity (well, maybe they do - this is my question), but any advice would be greatly appreciated.
My Elmah magazine now has 10,000 entries, similar to:
- The controller for the path '/ws/login.php' could not be found or it does not implement IController.
- The controller for the path '/ text / javascript' was not found or it does not implement IController.
- The controller for the path '/jlkqyvaugdaktp.html' cannot be found or is not implemented by IController. [[Actually 100 with these !! ... Do these random pages mean something in "HackerDom"? ]]
- The controller for the path '/Scripts/thickbox/macFFBgHack.png' cannot be found or it does not implement IController.
So .. to the Question
Obviously, the vast majority of these exceptions are thrown by IController ... can I tell Elmah to just "forget" about them and keep logging my real exceptions?
Or is it that my very general installation of MVC IgnoreRoute is not good enough? Should I ignore ".htm", "* .php" and all the others so that I can more realistic see Elmah messages about pages / objects / objects, which, apparently, can be more true for my application?
Thank you very much for your time and attention.
Setting up my existing route looks like this:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.IgnoreRoute("{*forums}", new { forums = @"cccForums/.*" }); routes.IgnoreRoute("{file}.txt"); /// REAL ROUTES routes.MapRoute( "ItemIndex", // Route name "Item/Index/{page}", // URL with parameters new { controller = "PageItem", action = "Index", page = 1} // Parameter defaults ); ............. ............. /// LAST CASE routes.MapRoute("Error", "{*url}", new { controller = "Site", action = "Map" });