protected virtual ILog CreateExceptionLog(HttpRequest request, Exception ex) { var apiExceptionLog = new ExceptionLog(ex); apiExceptionLog.SetValue("type", ex.GetType().ToString()); SetLogDataToLog(request.LogData, apiExceptionLog); return(apiExceptionLog); }