public static void Report(string message, ELogSeverity severity, string stackTraceStr, System.Diagnostics.StackTrace stackTrace) { if (s_SentCallstacks[severity].Add(stackTraceStr)) { s_Client.CaptureMessageWithSysStack(message, NanomeLogTypeToUnityLogType(severity), s_Tags, stackTrace); } }
public LogEntry(object[] payload, ELogSeverity severity, string channel, DateTime timeStamp, bool report) { Payload = payload; Severity = severity; Channel = channel; IsTraced = false; TimeStamp = timeStamp; Report = report; }
private static void SaveLog( object[] payload, ELogSeverity severity, string channel, DateTime timeStamp, bool report = false ) { if (disableLogs) { return; } LogEntry entry = new LogEntry(payload, severity, channel, timeStamp, report); SendLog(entry); }
private static LogType NanomeLogTypeToUnityLogType(ELogSeverity severity) { switch (severity) { case ELogSeverity.Debug: return(LogType.Log); case ELogSeverity.Warning: return(LogType.Warning); case ELogSeverity.Exception: return(LogType.Exception); case ELogSeverity.Error: return(LogType.Error); } return(LogType.Log); }
public static extern bool JasLog_ShouldOutputLog(ELogSeverity severity);
public static extern void JasPLog([MarshalAs(UnmanagedType.LPStr)] String file, int line, ELogSeverity severity, [MarshalAs(UnmanagedType.LPStr)] String str);