public void SubmitError(string eventName, string message, LogType type) { //GA.API.Quality.NewErrorEvent(eventName, message, target.x, target.y, target.z); GA_Error.SeverityType severity = GA_Error.SeverityType.info; switch (type) { case LogType.Assert: severity = GA_Error.SeverityType.info; break; case LogType.Error: severity = GA_Error.SeverityType.error; break; case LogType.Exception: severity = GA_Error.SeverityType.critical; break; case LogType.Log: severity = GA_Error.SeverityType.debug; break; case LogType.Warning: severity = GA_Error.SeverityType.warning; break; } GA.API.Error.NewErrorEvent(severity, message); }
public override void Reset() { severityType = GA_Error.SeverityType.error; Message = new FsmString() { UseVariable = true }; Position = new FsmVector3() { UseVariable = true }; }
/* * GA_Error.SeverityType --> critical , debug, error, info, warning * */ public void LogErrorEvent(GA_Error.SeverityType serverityType, string error) { #if UNITY_IPHONE #endif #if UNITY_ANDROID if (UserPrefs.isAmazonBuild) { } else { GA.API.Error.NewEvent(serverityType, error); } #endif }
/// <summary> /// Adds detailed system specifications regarding the users/players device to the parameters. /// </summary> /// <param name="parameters"> /// The parameters which will be sent to the server <see cref="Dictionary<System.String, System.Object>"/> /// </param> private Hashtable AddSystemSpecs(GA_Error.SeverityType severity, string type, string message) { string addmessage = ""; if (message != "") { addmessage = ": " + message; } Hashtable parameters = new Hashtable() { { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Severity], severity.ToString() }, { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Message], type + addmessage }, { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Level], GA.SettingsGA.CustomArea.Equals(string.Empty)?Application.loadedLevelName:GA.SettingsGA.CustomArea } }; return(parameters); }
public void SubmitError(string eventName, string message, LogType type) { Vector3 target = Vector3.zero; if (GA.SettingsGA.TrackTarget != null) { target = GA.SettingsGA.TrackTarget.position; } //GA.API.Quality.NewErrorEvent(eventName, message, target.x, target.y, target.z); GA_Error.SeverityType severity = GA_Error.SeverityType.info; switch (type) { case LogType.Assert: severity = GA_Error.SeverityType.info; break; case LogType.Error: severity = GA_Error.SeverityType.error; break; case LogType.Exception: severity = GA_Error.SeverityType.critical; break; case LogType.Log: severity = GA_Error.SeverityType.debug; break; case LogType.Warning: severity = GA_Error.SeverityType.warning; break; } GA.API.Error.NewErrorEvent(severity, message, target.x, target.y, target.z); }
public override void Reset() { severityType = GA_Error.SeverityType.error; Message = new FsmString() { UseVariable = true }; Position = new FsmVector3() { UseVariable = true }; }
public override void Reset() { severityType = GA_Error.SeverityType.error; Message = new FsmString(); }
public override void Reset() { severityType = GA_Error.SeverityType.error; Message = new FsmString(); }