Logs the error to Sql Server through the WebRequestLog