dlogg.style

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,   "",              ""
            );

Members

Enums

MyLevel
enum MyLevel
Undocumented in source.

Mixin templates

generateStyle
mixintemplate generateStyle(Style, TS...)

Utility mixin template that generates facilities for output message formatting for console output and file output.

Meta

License

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

Authors

NCrashed <ncrashed@gmail.com>