Module defines facilities for custom styling of logger messages. Template mixin $(generateStyle) generates code for your logging styles (represented by an enum) that can be mixed into logger implementation.
See generateStyle for detailed description.
Example of default logger style:
import dlogg.log, dlogg.style; mixin generateStyle!(LoggingLevel , 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, "", "" );
Utility mixin template that generates facilities for output message formatting for console output and file output.
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>
Module defines facilities for custom styling of logger messages. Template mixin $(generateStyle) generates code for your logging styles (represented by an enum) that can be mixed into logger implementation.
See generateStyle for detailed description.
Example of default logger style: