Logger.logF

Logs a formatted string message.

struct Logger
void
logF
(
string fmt
T...
)
(,,
Exception exception = null
,
string moduleName = __MODULE__
,
string functionName = __PRETTY_FUNCTION__
,
string fileName = __FILE__
,
size_t lineNumber = __LINE__
)

Parameters

level Level

The log level.

args T

The arguments for the formatted string.

exception Exception

The exception that prompted this log. This may be null.

moduleName string

The name of the module. This will resolve to the current module name by default.

functionName string

The name of the function. This will resolve to the current function name by default.

fileName string

The name of the source file. This will resolve to the current source file by default.

lineNumber size_t

The line number in the source file. This will resolve to the current source file's line number by default.