private static void RecordEntry(History.Entry e) { history.entries.Add(e); switch (e.type) { case History.EntryType.Submit: StratusDebug.Log(e.text); break; case History.EntryType.Result: StratusDebug.Log(e.text); break; case History.EntryType.Warning: StratusDebug.LogWarning(e.text); break; case History.EntryType.Error: StratusDebug.LogError(e.text); break; } onEntry?.Invoke(e); }
/// <summary> /// Prints the given warning message to the console /// </summary> /// <param name="value"></param> public static void LogWarning(this IStratusLogger logger, object value) => StratusDebug.LogWarning(value, logger, 2);
/// <summary> /// Prints the given warning message to the console /// </summary> /// <param name="value"></param> public void LogWarning(object value) => StratusDebug.LogWarning(value, this, 2);