DigiaLogSeverity enum
How loud one log line is.
Separate from DigiaLogLevel, which is the threshold a host app configures. A line is emitted when its severity is at or above the configured level β see DigiaLogger.
The four names are a cross-stack contract: Android's Logger, iOS's
DigiaLog and the RN console sink expose the same ladder, and the
diagnostics spec makes it the severity field of the future structured
record. Renaming one here renames it in four places.
Values
- error β const DigiaLogSeverity
-
The SDK could not do the thing: a campaign dropped, an action failed, an invariant violated. Visible at every level except DigiaLogLevel.none.
const DigiaLogSeverity(0, 'π΄') - warn β const DigiaLogSeverity
-
Degraded but recovered: a field fell back to a default, a retry succeeded.
const DigiaLogSeverity(1, 'π‘') - info β const DigiaLogSeverity
-
Lifecycle milestones: init complete, N campaigns loaded, trigger received.
const DigiaLogSeverity(2, 'π΅') - debug β const DigiaLogSeverity
-
Per-node, per-frame, per-request detail.
const DigiaLogSeverity(3, 'βͺ')
Properties
- badge β String
-
The glyph every line of this severity leads with, so severity reads as a
traffic light before it reads as a word.
final
- hashCode β int
-
The hash code for this object.
no setterinherited
- index β int
-
A numeric identifier for the enumerated value.
no setterinherited
- name β String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - rank β int
-
Verbosity rank β higher is chattier. Compared against the configured
level's rank, never against Enum.index.
final
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
β const List<
DigiaLogSeverity> - A constant List of the values in this enum, in order of their declaration.