slf4d.default_provider.formatters

Undocumented in source.

Members

Functions

compactLoggerName
string compactLoggerName(string name, size_t maxLength)

Compacts the logger's name so that it fits within a specified length, and is still somewhat legible.

formatExceptionInfo
string formatExceptionInfo(ExceptionInfo info, bool colored)

Formats a log message's exception info.

formatLogLevel
string formatLogLevel(Level level, bool colored)

Formats a log level to a fixed-width string that's right-aligned, and optionally colored.

formatLogMessage
string formatLogMessage(LogMessage msg, bool colored)

Formats a full log message.

formatLoggerName
string formatLoggerName(string name, bool colored)

Formats the logger's name (usually this is the name of the module where the logger was created) so that it is of a uniform character width.

formatTimestamp
string formatTimestamp(SysTime timestamp, bool colored)

Formats the log message's timestamp as a limited ISO-8601 format that's accurate to the millisecond.