Createing a httpmodule to log IIS



I am interested in creatign a httpmodule that will log all IIS requests to SQL Server.

I am just wondering, how would I be able to log bad requests such as 404 etc? Would I have to change the custom error page to a page that could alert my httpmodule?


--
Mick Walker
Software Engineer

http://www.mick-walker.co.uk
.