public static void SubmitMessage(string name, string message, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Info) { _instance.InvokeAdaptors("SubmitMessage", name, message, context, severity); }
public static void Submit(Exception exception, string context = null, SinozeBugSeverity severity = SinozeBugSeverity.Warning) { _instance.InvokeAdaptors("Submit", exception, context, severity); }
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; } }
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()); }
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()); }