The OpenD Programming Language

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 defaultLogLevel additionally the condition passed must be true.

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

Parameters

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(true, "Hello World %f", 3.1415);

Meta