public void LogError(string function_name, string exception_type, string exception_message, string dev_message, int error_type_id)
        {
            ErrorLogDTO errorLogDTO = new ErrorLogDTO();

            errorLogDTO.FunctionName     = function_name;
            errorLogDTO.ExceptionType    = exception_type;
            errorLogDTO.ExceptionMessage = exception_message;
            errorLogDTO.DevMessage       = dev_message;
            errorLogDTO.DeviceMake       = strDeviceMake;
            errorLogDTO.DeviceModel      = strDeviceModel;
            errorLogDTO.AndroidVersion   = strAndroidVersion;
            db_helper.SaveNewError(errorLogDTO);
        }
Exemple #2
0
 /// <summary>
 /// Saves the new error to the error log
 /// </summary>
 /// <param name="errorLog">Error log.</param>
 public void SaveNewError(ErrorLogDTO errorLog)
 {
     sqLiteConnection.Insert(errorLog);
 }