log

Writes an exception log message.

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

Parameters

level Level

The logging level.

exception Exception

The 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.