Default logger interface that uses LoggingLevel as enum that describes ordering of logging levels.
Log levels defines style of the messages. Printing in console can be controlled by ILogger.minOutputLevel property.
Wrapper for handy debug messages. Warning: main purpose for debug messages, thus it is not lazy.
Not lazy wrapper for multiple args messages
Lazy wrapper for one string message
Not lazy wrapper for multiple args messages
Lazy wrapper for one string message
Not lazy wrapper for multiple args messages
Lazy wrapper for one string message
Interface for lazy logging. Assumes to be nothrow. Underlying realization should be concurrent safe. * StyleEnum is enum that used to distinct logging levels and define ordering for verbosity muting.
1 void testThread() 2 { 3 foreach(j; 1 .. 50) 4 { 5 logInfo(to!string(j)); 6 logError(to!string(j)); 7 } 8 } 9 * 10 foreach(i; 1 .. 50) 11 { 12 spawn(&testThread); 13 }
*
Subject to the terms of the MIT license, as written in the included LICENSE file.
© 2013-2014 Anton Gushcha
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. *