dalicious.log

Central logging facility for dalicious.

Members

Enums

LogLevel
enum LogLevel

Specifies the log level for a particular log message.

todo
eponymoustemplate todo(string task, string file = __FILE__, size_t line = __LINE__)

Create a new todo. A todo list will be generated on end of compilation.

Functions

getLogLevel
LogLevel getLogLevel()
Undocumented in source. Be warned that the author may not have intended to support it.
log
void log(LogLevel level, string fmt, T args)

Logs a message.

logDebug
void logDebug(string fmt, T args)
logDiagnostic
void logDiagnostic(string fmt, T args)
logError
void logError(string fmt, T args)
logInfo
void logInfo(string fmt, T args)

Logs a message.

logJson
void logJson(LogLevel level, T args)

Logs a message in JSON format.

logJsonDebug
void logJsonDebug(T args)
logJsonDiagnostic
void logJsonDiagnostic(T args)
logJsonError
void logJsonError(T args)
logJsonInfo
void logJsonInfo(T args)
logJsonWarn
void logJsonWarn(T args)

Logs a message in JSON format.

logWarn
void logWarn(string fmt, T args)

Logs a message.

setLogLevel
void setLogLevel(LogLevel level)

Sets the minimum log level to be printed.

shouldLog
bool shouldLog(LogLevel level)
Undocumented in source. Be warned that the author may not have intended to support it.
traceExecution
string traceExecution()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

ExecutionTracer
struct ExecutionTracer(LogLevel logLevel = LogLevel.diagnostic)
Undocumented in source.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>