ConsoleTextLogSerializer

Log formatter that prints nicely formatted log messages to the console without any particular structured format. It can apply ANSI colors to the output.

Constructors

this
this(bool ansiColors, size_t loggerNameLengthLimit)
Undocumented in source.

Members

Functions

compactLoggerName
string compactLoggerName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
formatAttributes
string formatAttributes(immutable(string[string]) attributes)
Undocumented in source. Be warned that the author may not have intended to support it.
formatExceptionInfo
string formatExceptionInfo(ExceptionInfo info)
Undocumented in source. Be warned that the author may not have intended to support it.
formatLogLevel
string formatLogLevel(Level level)
Undocumented in source. Be warned that the author may not have intended to support it.
formatLoggerName
string formatLoggerName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
formatTimestamp
string formatTimestamp(SysTime timestamp)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
string serialize(LogMessage msg)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From LogSerializer

serialize
string serialize(LogMessage msg)
Undocumented in source.

Meta