public void Write(string message, Color color) { if (_consoleEnabled) { Colorful.Console.Write(message, color); OnPrintMessage?.Invoke(this, message); } }
public static void PrintMessage(string message) { OnPrintMessage?.Invoke(null, new LoggerEventArgs(message + Environment.NewLine)); }