LogLevel enum

Log severity levels with associated numeric codes.

Levels are ordered from most severe to least:

error (0) < success (1) < warn (2) < info (3) < debug (4) < trace (5)
Inheritance
Available extensions

Values

error → const LogLevel

Critical error — application may not continue.

const LogLevel(0)
success → const LogLevel

Successful operation (e.g., request completed, job finished).

const LogLevel(1)
warning → const LogLevel

Warning — non-fatal issue that requires attention.

const LogLevel(2)
info → const LogLevel

General informational message.

const LogLevel(3)
debug → const LogLevel

Debug-level diagnostic information.

const LogLevel(4)
trace → const LogLevel

Fine-grained tracing for development.

const LogLevel(5)

Properties

code → int
Numeric code for filtering or transport-level decisions.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String
Uppercase name of the level (e.g., ERROR, INFO).
no setter
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

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

fromCode(int code) → LogLevel
Converts a numeric code back to a LogLevel.

Constants

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