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.

Public Imports

dlogg.log
public import dlogg.log;
Undocumented in source.

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.

Functions

testThread
void testThread(ILogger logger, Tid owner, int i, uint n)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

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

Authors

NCrashed <ncrashed@gmail.com>