-
Notifications
You must be signed in to change notification settings - Fork 1
Logging :: Implementations :: EventLogger
mkloubert edited this page May 19, 2014
·
1 revision
The EventLogger logs message data via an event.
The operation is done in the same thread.
var logger = new EventLogger();
logger.MessageReceived += (object sender, LogMessageEventArgs e) =>
{
// ILogMessage object is stored
// in e.Message property
};
// 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 content is licensed under the GNU Free Documentation License v1.3.