ILogger

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

Members

Functions

finalize
void finalize()

Used to manual shutdown protocols.

formatString
string formatString(string message, LoggingLevel level)

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

log
void log(string message, LoggingLevel level)

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

logDebug
void logDebug(E args)

Wrapper for handy debug messages. Warning: main purpose for debug messages, thus it is not lazy.

logError
void logError(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
logInfo
void logInfo(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
logWarning
void logWarning(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
minOutputLevel
LoggingLevel minOutputLevel()
minOutputLevel
void minOutputLevel(LoggingLevel level)

Setups minimum log level,

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