示例#1
0
 public void Write(string message, ILoggerCategory loggerCategory)
 {
     if (Whitelist.Contains(loggerCategory))
     {
         Debug.WriteLine(message);
     }
 }
示例#2
0
        public void Write(string message, ILoggerCategory loggerCategory)
        {
            if (Whitelist.Contains(loggerCategory))
            {
                if (!ConsoleHandler.HasConsole())
                {
                    ConsoleHandler.CreateConsole();
                }

                Console.WriteLine(message);
            }
        }