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]
    class Logger
    @property final const pure @safe @nogc
    logLevel
    ()
  2. LogLevel logLevel [@property setter]

Examples

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

Meta