示例#1
0
        private static void SubmitError(string message, LogType type)
        {
            GA_Error.GAErrorSeverity severity = GA_Error.GAErrorSeverity.GAErrorSeverityInfo;

            switch (type)
            {
            case LogType.Assert:
                severity = GA_Error.GAErrorSeverity.GAErrorSeverityInfo;
                break;

            case LogType.Error:
                severity = GA_Error.GAErrorSeverity.GAErrorSeverityError;
                break;

            case LogType.Exception:
                severity = GA_Error.GAErrorSeverity.GAErrorSeverityCritical;
                break;

            case LogType.Log:
                severity = GA_Error.GAErrorSeverity.GAErrorSeverityDebug;
                break;

            case LogType.Warning:
                severity = GA_Error.GAErrorSeverity.GAErrorSeverityWarning;
                break;
            }

            GA_Error.NewEvent(severity, message);
        }
 public static void NewErrorEvent(GAErrorSeverity severity, string message)
 {
     if (!GameAnalyticsSDK.GameAnalytics._hasInitializeBeenCalled)
     {
         return;
     }
     GA_Error.NewEvent(severity, message, null);
 }
示例#3
0
 public static void NewErrorEvent(GAErrorSeverity severity, string message)
 {
     if (!GameAnalytics._hasInitializeBeenCalled)
     {
         return;
     }
     GA_Error.NewEvent(severity, message, (IDictionary <string, object>)null);
 }
示例#4
0
 /// <summary>
 /// Set up custom error events in the game. You can group the events by severity level and attach a message.
 /// </summary>
 /// <param name="severity">Severity of error.</param>
 /// <param name="message">Error message (Optional, can be nil).</param>
 public static void NewErrorEvent(GAErrorSeverity severity, string message)
 {
     if (!GameAnalytics._hasInitializeBeenCalled)
     {
         Debug.LogWarning("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW");
     }
     GA_Error.NewEvent(severity, message);
 }
示例#5
0
 public static void NewErrorEvent(GAErrorSeverity severity, string message)
 {
     if (!_hasInitializeBeenCalled)
     {
         UnityEngine.Debug.LogError("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW");
     }
     else
     {
         GA_Error.NewEvent(severity, message, null);
     }
 }
示例#6
0
 /// <summary>
 /// Set up custom error events in the game. You can group the events by severity level and attach a message.
 /// </summary>
 /// <param name="severity">Severity of error.</param>
 /// <param name="message">Error message (Optional, can be nil).</param>
 public static void NewErrorEvent(GAErrorSeverity severity, string message)
 {
     GA_Error.NewEvent(severity, message);
 }