1Elmah.ErrorLog errorLog = Elmah.ErrorLog.GetDefault(HttpContext.Current); 2 errorLog.Log(new Elmah.Error(ex));