private static void EnqueueReport(RemoteLogger.Report report) { Dictionary <string, string> .ValueCollection values = report.extra.Values; if (!values.Contains <string>("Oxide.Core") && !values.Contains <string>("Oxide.Plugins.Compiler")) { return; } string[] exceptionFilter = RemoteLogger.ExceptionFilter; for (int i = 0; i < (int)exceptionFilter.Length; i++) { string str = exceptionFilter[i]; if (values.Contains <string>(str) || values.Contains <string>(str)) { return; } } RemoteLogger.QueuedReports.Add(new RemoteLogger.QueuedReport(report)); if (!RemoteLogger.submittingReports) { RemoteLogger.SubmitNextReport(); } }
private static void EnqueueReport(string level, string[] stackTrace, string culprit, string message, string exception = null) { RemoteLogger.Report report = new RemoteLogger.Report(level, culprit, message, exception); report.DetectModules(stackTrace); RemoteLogger.EnqueueReport(report); }
public QueuedReport(RemoteLogger.Report report) { this.Headers = RemoteLogger.BuildHeaders(); this.Body = JsonConvert.SerializeObject(report); }