ConfigurableLogPattern

Configurable logging pattern that parses a string pattern

The pattern it's based of log4j pattern layout format: | Conversion Character | Effect | | -------------------- | -----: | | m | Module name | | d | Used to output the date of the logging event. Actually only outputs on ISO format | | F | Used to output the file name where the logging request was issued. | | L | Used to output the line number from where the logging request was issued. | | M | Used to output the function or method name where the logging request was issued. | | p | Used to output the priority of the logging event. | | r | Used to output number of milliseconds elapsed from the construction of this logger until the logging event. | | t | Used to output the thread that generated the logging event. |

Constructors

this
this(string logPattern)

Builds a configurable log pattern

Members

Functions

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

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 ILogPattern

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

Meta