/// <summary> /// Write an object to the console or log. /// </summary> /// <param name="obj">The object to write.</param> public static void Log(object obj) { OutputLogged?.Invoke(obj.ToString()); Console.WriteLine(obj); }
/// <summary> /// Write a string to the console or log. /// </summary> /// <param name="str">The string to write.</param> public static void Log(string str) { OutputLogged?.Invoke(str); Console.WriteLine(str); }
// TODO: rename to NewLine? public static void Log() { OutputLogged?.Invoke("\n"); Console.WriteLine(); }