dlogg.strict

Default synchronized log realization. The logging process performs instantly (if it can be processed properly). Logger puts message style string and current timestamp before the message. * Tested to be able operate in daemon mode and under heavy concurrent writing. *

Members

Aliases

StrictLogger
alias StrictLogger = StyledStrictLogger!(LoggingLevel, LoggingLevel.Debug, "Debug:".color(fg.light_magenta) ~ " %1$s", "[%2$s]: Debug: %1$s", LoggingLevel.Notice, "Notice:".color(fg.light_green) ~ " %1$s", "[%2$s]: Notice: %1$s", LoggingLevel.Warning, "Warning:".color(fg.light_yellow) ~ " %1$s", "[%2$s]: Warning: %1$s", LoggingLevel.Fatal, "Fatal:".color(fg.light_red) ~ " %1$s", "[%2$s]: Fatal: %1$s", LoggingLevel.Muted, "", "")

Standard implementation of IStyledLogger interface.

StrictLogger
alias StrictLogger = StyledStrictLogger!(LoggingLevel, LoggingLevel.Debug, "Debug:".color(fg.magenta) ~ " %1$s", "[%2$s]: Debug: %1$s", LoggingLevel.Notice, "Notice:".color(fg.green) ~ " %1$s", "[%2$s]: Notice: %1$s", LoggingLevel.Warning, "Warning:".color(fg.light_yellow) ~ " %1$s", "[%2$s]: Warning: %1$s", LoggingLevel.Fatal, "Fatal:".color(fg.light_red) ~ " %1$s", "[%2$s]: Fatal: %1$s", LoggingLevel.Muted, "", "")

Standard implementation of IStyledLogger interface.

StrictLogger
alias StrictLogger = StyledStrictLogger!(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, "", "")

Standard implementation of IStyledLogger interface.

Classes

StyledStrictLogger
class StyledStrictLogger(StyleEnum, US...)

Implementation of IStyledLogger with custom style. Usually you want to use StrictLogger alias, but there are cases where you want custom styles. * Example of custom styled logger:

Meta

Authors

NCrashed <ncrashed@gmail.com>

License

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