Logging :: Implementations :: ConsoleLogger - mkloubert/CLRToolbox GitHub Wiki

The ConsoleLogger logs message data to the Console.

The operation is done in the same thread.

var logger = new ConsoleLogger();


// log and send the log message to the console logger
logger.Log("That should be logged in DEBUG mode only.",
           LoggerFacadeCategories.Debug | LoggerFacadeCategories.Information);