dlogg.log

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.

Public Imports

std.conv
public import std.conv;

Members

Enums

LoggingLevel
enum LoggingLevel

Log levels defines style of the messages. Printing in console can be controlled by ILogger.minOutputLevel property.

Interfaces

ILogger
interface ILogger

Interface for lazy logging. Assumes to be nothrow. Underlying realization should be concurrent safe.

Examples

void testThread()
{
    foreach(j; 1 .. 50)
    {
        logInfo(to!string(j));
        logError(to!string(j));
    }
}    

foreach(i; 1 .. 50)
{
    spawn(&testThread);
}

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

NCrashed <ncrashed@gmail.com>