DSoftOut/rpc-sql-proxy — pull request #7 by NCrashed (2014-02-05 22:00:53+00:00)
Title: Logging system with docs and unittesting.

Logging system designed to operate in concurrent application.

The system should be initialized with $(B initLoggingSystem) function.
There is no need to call shutdown function as it is happen in module
destructor.

There are two useful methods:
```D
/**
*	Prints message string in log file and in stdout if application is running
*	in not daemon mode. As argument is lazy, there is no overhead for logging
*	in rarely used code branches.
*
*	Also prints current time as an addition to the message.
*/
void logInfo(lazy string msg) nothrow

/**
*	Prints message string in log file and in stderr if application is running
*	in not daemon mode. As argument is lazy, there is no overhead for logging
*	in rarely used code branches.
*
*	Also prints current time as an addition to the message.
*/
void logError(lazy string msg) nothrow
```

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

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