IStyledLogger

Interface for lazy logging. Assumes to be nothrow. Underlying realization should be concurrent safe.

StyleEnum is enum that used to distinct logging levels and define ordering for verbosity muting.

Members

Functions

finalize
void finalize()

Used to manual shutdown protocols.

formatConsoleOutput
string formatConsoleOutput(string message, StyleEnum level)

Format message with default logging style (etc. time and level string).

formatFileOutput
string formatFileOutput(string message, StyleEnum level)

Format message with default logging style (etc. time and level string).

log
void log(string message, StyleEnum level)

Prints message into log. Displaying in the console controlled by minOutputLevel property.

minLoggingLevel
StyleEnum minLoggingLevel()

Setups minimum message level that goes to file.

minLoggingLevel
void minLoggingLevel(StyleEnum level)

Setups minimum message level that goes to file.

minOutputLevel
StyleEnum minOutputLevel()
minOutputLevel
void minOutputLevel(StyleEnum level)

Setups minimum message level that goes to console.

name
void name(string value)

Setting new log file name. If the value differs from old one, logger should close old one and open new file.

name
string name()

Log file name.

rawInput
void rawInput(string message)

Unsafe write down the message without any meta information.

reload
void reload()

Checks if the log file is exists at specified location and if can't find it, recreates the file and continues write into it.

Meta