public void Write(string message, ILoggerCategory loggerCategory) { if (Whitelist.Contains(loggerCategory)) { Debug.WriteLine(message); } }
public void Write(string message, ILoggerCategory loggerCategory) { if (Whitelist.Contains(loggerCategory)) { if (!ConsoleHandler.HasConsole()) { ConsoleHandler.CreateConsole(); } Console.WriteLine(message); } }