log

This function logs data.

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

  1. void log(LogLevel ll, bool condition, A args)
  2. void log(LogLevel ll, bool condition, T arg, int line, string file, string funcName, string prettyFuncName)
  3. void log(LogLevel ll, A args)
  4. void log(LogLevel ll, T arg, int line, string file, string funcName, string prettyFuncName)
  5. void log(bool condition, A args)
  6. void log(bool condition, T arg, int line, string file, string funcName, string prettyFuncName)
    void
    log
    (
    T
    string moduleName = __MODULE__
    )
    (
    lazy bool condition
    ,
    lazy T arg
    ,
    int line = __LINE__
    ,
    string file = __FILE__
    ,
    string funcName = __FUNCTION__
    ,
    string prettyFuncName = __PRETTY_FUNCTION__
    )
  7. void log(A args)

Parameters

condition bool

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

Examples

log(true, "Hello World", 3.1415);

Meta