SeverityLevel enum

Severity of a log message, with the severity numbers and short names of the OpenTelemetry log data model.

jsonValue (e.g. warn) is used in config values (telemetry.logLevel) and in stored log messages, severityText (e.g. WARN) in log output.

Inheritance
Implemented types
Available extensions

Values

trace → const SeverityLevel
const SeverityLevel(1, 'trace')
debug → const SeverityLevel
const SeverityLevel(5, 'debug')
info → const SeverityLevel
const SeverityLevel(9, 'info')
warning → const SeverityLevel
const SeverityLevel(13, 'warn')
error → const SeverityLevel
const SeverityLevel(17, 'error')
fatal → const SeverityLevel
const SeverityLevel(21, 'fatal')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
jsonValue → String
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severityNumber → int
final
severityText → String
The OpenTelemetry short name, e.g. WARN.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

ofSeverityNumber(int severityNumber) → SeverityLevel

Constants

values → const List<SeverityLevel>
A constant List of the values in this enum, in order of their declaration.