コード例 #1
0
 public static void SubmitMessage(string name, string message, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Info)
 {
     _instance.InvokeAdaptors("SubmitMessage", name, message, context, severity);
 }
コード例 #2
0
 public static void Submit(Exception exception, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Warning)
 {
     _instance.InvokeAdaptors("Submit", exception, context, severity);
 }
コード例 #3
0
 private GA_Error.GAErrorSeverity Severity(SinozeBugSeverity severity)
 {
     switch(severity)
     {
         case SinozeBugSeverity.Error : return GA_Error.GAErrorSeverity.GAErrorSeverityError;
         case SinozeBugSeverity.Warning : return GA_Error.GAErrorSeverity.GAErrorSeverityWarning;
         case SinozeBugSeverity.Info : return GA_Error.GAErrorSeverity.GAErrorSeverityInfo;
         default : return GA_Error.GAErrorSeverity.GAErrorSeverityError;
     }
 }
コード例 #4
0
    public void Submit(Exception exception, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Warning)
    {
        var s = new System.Text.StringBuilder();

        s.AppendLine("[Exception]");
        s.AppendLine(exception.GetType().Name);

        if(!string.IsNullOrEmpty(exception.Message))
        {
            s.AppendLine("[Exception Message]");
            s.AppendLine(exception.Message);
        }

        if(!string.IsNullOrEmpty(context))
        {
            s.AppendLine("[Context]");
            s.AppendLine(context);
        }

        GameAnalytics.NewErrorEvent(Severity(severity), s.ToString());
    }
コード例 #5
0
    public void SubmitMessage(string name, string message, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Info)
    {
        var s = new System.Text.StringBuilder();

        s.AppendLine("[Name]");
        s.AppendLine(name);

        if(!string.IsNullOrEmpty(message))
        {
            s.AppendLine("[Message]");
            s.AppendLine(message);
        }

        if(!string.IsNullOrEmpty(context))
        {
            s.AppendLine("[Context]");
            s.AppendLine(context);
        }

        GameAnalytics.NewErrorEvent(Severity(severity), s.ToString());
    }