The OpenD Programming Language

memLogFunctions.logImpl

This function logs data to the used Logger.

In order for the resulting log message to be logged the LogLevel must be greater or equal than the LogLevel of the used Logger and must be greater or equal than the global LogLevel.

  1. void logImpl(A args)
    template memLogFunctions(LogLevel ll)
    pragma(inline, true)
    void
    logImpl
    (
    int line = __LINE__
    string file = __FILE__
    string funcName = __FUNCTION__
    string prettyFuncName = __PRETTY_FUNCTION__
    string moduleName = __MODULE__
    A...
    )
    (
    lazy A args
    )
    if (
    args.length == 0 ||
    (
    args.length > 0 &&
    !is(A[0] : bool)
    )
    )
  2. void logImpl(bool condition, A args)

Parameters

args A

The data that should be logged.

Examples

auto s = new FileLogger(stdout);
s.trace(1337, "is number");
s.info(1337, "is number");
s.error(1337, "is number");
s.critical(1337, "is number");
s.fatal(1337, "is number");

Meta