LogLevel enum
Enum representing different log levels in order of severity.
Values
- verbose → const LogLevel
-
const LogLevel(0, 'VERBOSE', Colors.grey)
- debug → const LogLevel
-
const LogLevel(1, 'DEBUG', Colors.blue)
- info → const LogLevel
-
const LogLevel(2, 'INFO', Colors.green)
- warn → const LogLevel
-
const LogLevel(3, 'WARN', Colors.orange)
- error → const LogLevel
-
const LogLevel(4, 'ERROR', Colors.red)
Properties
- color → Color
-
Associated color for UI display
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
Returns the appropriate icon for each log level
no setter
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Display name for the log level
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
- value → int
-
Numeric value for comparison and filtering
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldLog(
LogLevel minLevel) → bool - Check if this level should be logged based on minimum level
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited