ConfigurableAnsiLogPattern

ConfigurableLogPattern that colorizes log level with ANSI escape codes

Constructors

this
this(string[LogLevel] colorMap, string logPattern)

Builds a configurable log pattern

Members

Functions

logLevelPostfix
string logLevelPostfix(LogLevel logLevel)

string following loglevel. Usefull to colorize it, with ANSI

logLevelPrefix
string logLevelPrefix(LogLevel logLevel)

string preceding loglevel. Usefull to colorize it, with ANSI

Inherited Members

From ConfigurableLogPattern

applyPattern
void applyPattern(File outputFile, string file, int line, string funcName, string prettyFuncName, string moduleName, LogLevel logLevel, Tid threadId, SysTime timestamp, SysTime startTimeStamp)

Writes on a outputRange of chars, the logging pattern

logLevelPrefix
string logLevelPrefix(LogLevel logLevel)

string preceding loglevel. Usefull to colorize it, with ANSI

logLevelPostfix
string logLevelPostfix(LogLevel logLevel)

string following loglevel. Usefull to colorize it, with ANSI

Meta