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.

  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)
  4. void logf(string msg, A args)
    void
    logf
    (
    int line = __LINE__
    string file = __FILE__
    string funcName = __FUNCTION__
    string prettyFuncName = __PRETTY_FUNCTION__
    string moduleName = __MODULE__
    A...
    )
    (
    lazy string msg
    ,
    lazy A args
    )

Parameters

msg string

The printf-style string.

args A

The data that should be logged.

Examples

logf("Hello World %f", 3.1415);

Meta