StreamLogPriority enum
The severity of a log record.
Ordered from least to most severe, so a threshold can be expressed by comparing a record's priority against it. none outranks every real severity, and so admits nothing.
- Inheritance
- Implemented types
- Available extensions
Values
- verbose β const StreamLogPriority
-
Fine-grained detail on a hot path, such as an individual heartbeat.
const StreamLogPriority(level: 2, emoji: 'π', label: 'V') - debug β const StreamLogPriority
-
The steps a subsystem takes, such as a connection changing state.
const StreamLogPriority(level: 3, emoji: 'π§', label: 'D') - info β const StreamLogPriority
-
A milestone worth seeing without opting into the full trace.
const StreamLogPriority(level: 4, emoji: 'βΉοΈ', label: 'I') - warning β const StreamLogPriority
-
Something recoverable that the caller may still want to act on.
const StreamLogPriority(level: 5, emoji: 'β οΈ', label: 'W') - error β const StreamLogPriority
-
A failure.
const StreamLogPriority(level: 6, emoji: 'π¨', label: 'E') - none β const StreamLogPriority
-
A threshold that admits nothing, not a severity a record can carry.
A filter held to it rejects every record, whatever its severity.
const StreamLogPriority(level: 7, emoji: 'π£', label: '*')
Properties
- emoji β String
-
A glyph identifying this priority at a glance, for handlers that render one.
final
- hashCode β int
-
The hash code for this object.
no setterinherited
- index β int
-
A numeric identifier for the enumerated value.
no setterinherited
- label β String
-
A single-letter abbreviation of this priority, for handlers that render one.
final
- level β int
-
The rank of this priority, where a higher number is more severe.
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
Methods
-
compareTo(
StreamLogPriority other) β int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) β dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) β String -
A string representation of this object.
override
Operators
-
operator <(
StreamLogPriority other) β bool -
Whether this priority is less severe than
other. -
operator <=(
StreamLogPriority other) β bool -
Whether this priority is no more severe than
other. -
operator ==(
Object other) β bool -
The equality operator.
inherited
-
operator >(
StreamLogPriority other) β bool -
Whether this priority is more severe than
other. -
operator >=(
StreamLogPriority other) β bool -
Whether this priority is at least as severe as
other.
Constants
-
values
β const List<
StreamLogPriority> - A constant List of the values in this enum, in order of their declaration.