Logger.logLevel

The LogLevel determines if the log call are processed or dropped by the Logger. In order for the log call to be processed the LogLevel of the log call must be greater or equal to the LogLevel of the logger.

These two methods set and get the LogLevel of the used Logger.

  1. LogLevel logLevel [@property getter]
  2. LogLevel logLevel [@property setter]
    class Logger
    @property final @safe @nogc
    void
    logLevel
    (
    const LogLevel lv
    )

Examples

auto f = new FileLogger(stdout);
f.logLevel = LogLevel.info;
assert(f.logLevel == LogLevel.info);

Meta