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.