level property
LogOptions
get
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;
}
set
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;
}