NCrashed/dlogg — pull request #4 by NCrashed (2014-11-13 23:29:18+00:00)
Title: Issue 3. Custom time formatting

Implements #3. Adding new feature of customizing time formatting.

* Doesn't breaks old code
* Implemented via optional param to `generateStyle`

```D
string myTimeFormatting(DistType t, SysTime time)
{
final switch(t)
{
case(DistType.Console): return time.toSimpleString();
case(DistType.File): return time.toISOExtString();
}
}

alias MyLogger = StyledStrictLogger!(LoggingLevel, myTimeFormatting
, LoggingLevel.Debug, "Debug: %1$s", "[%2$s]: Debug: %1$s"
, LoggingLevel.Notice, "Notice: %1$s", "[%2$s]: Notice: %1$s"
, LoggingLevel.Warning, "Warning: %1$s", "[%2$s]: Warning: %1$s"
, LoggingLevel.Fatal, "Fatal: %1$s", "[%2$s]: Fatal: %1$s"
, LoggingLevel.Muted, "", ""
);
```