logf

This function logs data in a printf-style manner.

In order for the data to be processed the LogLevel of the log call must be greater or equal to the LogLevel of the sharedLog and the defaultLogLevel additionally the condition passed must be true.

  1. void logf(LogLevel ll, bool condition, string msg, A args)
    void
    logf
    (
    int line = __LINE__
    string file = __FILE__
    string funcName = __FUNCTION__
    string prettyFuncName = __PRETTY_FUNCTION__
    string moduleName = __MODULE__
    A...
    )
    (
    const LogLevel ll
    ,
    lazy bool condition
    ,
    lazy string msg
    ,
    lazy A args
    )
  2. void logf(LogLevel ll, string msg, A args)
  3. void logf(bool condition, string msg, A args)
  4. void logf(string msg, A args)

Parameters

ll LogLevel

The LogLevel used by this log call.

condition bool

The condition must be true for the data to be logged.

msg string

The printf-style string.

args A

The data that should be logged.

Examples

logf(LogLevel.warning, true, "Hello World %f", 3.1415);

Meta

Suggestion Box / Bug Report