public static void Exception(string message, Exception exception) { if (!exception.StackTrace.Contains("Oxide.Core") && !exception.StackTrace.Contains("Oxide.Plugins.Compiler")) { return; } string[] exceptionFilter = RemoteLogger.ExceptionFilter; for (int i = 0; i < (int)exceptionFilter.Length; i++) { string str = exceptionFilter[i]; if (exception.StackTrace.Contains(str) || message.Contains(str)) { return; } } RemoteLogger.EnqueueReport("fatal", Assembly.GetCallingAssembly(), RemoteLogger.GetCurrentMethod(), message, exception.ToString()); }
public static void Debug(string message) { RemoteLogger.EnqueueReport("debug", Assembly.GetCallingAssembly(), RemoteLogger.GetCurrentMethod(), message, null); }