diagnosticsLogLevel property

TomDiagnosticLevel? get diagnosticsLogLevel

The log's level, or null when this device states none. A value that names no level states nothing, rather than failing the whole file over one hand-edited key.

Implementation

TomDiagnosticLevel? get diagnosticsLogLevel {
  final value = _values[diagnosticsLogLevelKey];
  for (final level in TomDiagnosticLevel.values) {
    if (level.name == value) return level;
  }
  return null;
}
set diagnosticsLogLevel (TomDiagnosticLevel? level)

Implementation

set diagnosticsLogLevel(TomDiagnosticLevel? level) =>
    this[diagnosticsLogLevelKey] = level?.name;