dalicious.log

Central logging facility for dalicious.

Members

Classes

ProgressMeter
class ProgressMeter

Track progress over time on text-based output device.

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

getLogFile
File getLogFile()

Get the log file.

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. If the name part is null the field will not be included into the Json.

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. If the name part is null the field will not be included into the Json.

logWarn
void logWarn(string fmt, T args)

Logs a message.

setLogFile
void setLogFile(File logFile)

Sets the log file.

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>