The OpenD Programming Language

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.

  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)
  7. void log(A args)
    pragma(inline, true)
    void
    log
    (
    int line = __LINE__
    string file = __FILE__
    string funcName = __FUNCTION__
    string prettyFuncName = __PRETTY_FUNCTION__
    string moduleName = __MODULE__
    A...
    )
    (
    lazy A args
    )
    if (
    (
    args.length > 1 &&
    !is(Unqual!(A[0]) : bool)
    &&
    !is(Unqual!(A[0]) == LogLevel)
    )
    ||
    args.length == 0
    )

Parameters

args A

The data that should be logged.

Examples

log("Hello World", 3.1415);

Meta