Logging system designed to operate in concurrent application.
The system should be initialized with initLoggingSystem function. There is no need to call shutdown function as it is happen in module destructor.
Log levels defines style of the messages. Printing in console can be controlled by ILogger.minOutputLevel property.
Interface for lazy logging. Assumes to be nothrow. Underlying realization should be concurrent safe.
void testThread() { foreach(j; 1 .. 50) { logInfo(to!string(j)); logError(to!string(j)); } } foreach(i; 1 .. 50) { spawn(&testThread); }
See Source File
Subject to the terms of the MIT license, as written in the included LICENSE file.
© 2013-2014 Anton Gushcha
NCrashed <ncrashed@gmail.com>
Logging system designed to operate in concurrent application.
The system should be initialized with initLoggingSystem function. There is no need to call shutdown function as it is happen in module destructor.