slf4d.log_functions

This module defines a set of logging functions that can be used in any application. There is a set of basic log functions that accept any logging level, as well as pre-defined functions for the standard SLF4D logging levels.

Basic Log Functions

log(Levels.WARN, "Warning message");
log(Levels.ERROR, new Exception("Oh no!"));
logF!"Info message: %d"(Levels.INFO, 42);

Members

Functions

debugF
void debugF(T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted debug log message.

debug_
void debug_(string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a debug log message.

debug_
void debug_(Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception debug log message.

error
void error(string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an error log message.

error
void error(Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception error log message.

errorF
void errorF(T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted error log message.

info
void info(string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an info log message.

info
void info(Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception info log message.

infoF
void infoF(T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted info log message.

log
void log(Level level, string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a log message.

log
void log(Level level, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception log message.

logF
void logF(Level level, T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted log message.

trace
void trace(string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a trace log message.

trace
void trace(Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception trace log message.

traceF
void traceF(T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted trace log message.

warn
void warn(string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a warn log message.

warn
void warn(Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes an exception warn log message.

warnF
void warnF(T args, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Writes a formatted warn log message.