log

Writes a log message.

  1. void log(Level level, string msg, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)
    void
    log
    (,
    string msg
    ,
    Exception exception = null
    ,
    string moduleName = __MODULE__
    ,
    string functionName = __PRETTY_FUNCTION__
    ,
    string fileName = __FILE__
    ,
    size_t lineNumber = __LINE__
    )
  2. void log(Level level, Exception exception, string moduleName, string functionName, string fileName, size_t lineNumber)

Parameters

level Level

The logging level.

msg string

The message.

exception Exception

An optional exception to log.

moduleName string

The name of the module where this log message was written.

functionName string

The name of the function where this log message was written.

fileName string

The name of the source file where this log message was written.

lineNumber size_t

The line number where this log message was written.