I'm a big fan of the ELMAH project which I utilise in my personal website GamerLobby.net
This is great for plugging into an existing website to catch unhandled exceptions, but not ideal when you want to log to an existing infrastructure.
So I set of on the task to create my own custom unhandled error logging module, and this is what I came up with.