level property

LogOptions level

Effective level considering the levels established in this logger's parents (when hierarchicalLoggingEnabled is true).

Implementation

LogOptions get level {
  LogOptions effectiveLevel;

  if (_parent == null) {
    effectiveLevel = _level;
  } else if (!hierarchicalLoggingEnabled) {
    effectiveLevel = _root._level;
  } else {
    effectiveLevel = _level;
  }

  return effectiveLevel;
}
void level=(LogOptions value)

Override the level for this particular Loggy and its children.

Implementation

set level(LogOptions value) {
  if (!hierarchicalLoggingEnabled && _parent != null) {
    throw UnsupportedError(
        'Please set "hierarchicalLoggingEnabled" to true if you want to '
        'change the level on a non-root logger.');
  }
  _level = value;
}