I am not 100% sure this falls within your domain, but I noticed if an error is thrown by a widget during the creation of the html by the razor engine it isn't caught in by the logging system if you integrate it with elmah according to the documentation; well, at least not for me.