-
Notifications
You must be signed in to change notification settings - Fork 1
Logging :: Implementations :: AsyncLogger
mkloubert edited this page May 13, 2014
·
4 revisions
The AsyncLogger class sends its log message to an inner logger.
The logic of the inner logger is executed in a separate thread.
// log to the console and do this in a separate thread
var logger = new AsyncLogger(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);
// the Log() method does NOT wait until the inner
// ConsoeLogger has been logged the message to the
// console
The content is licensed under the GNU Free Documentation License v1.3.