LogLevel enum
Log levels, from least to most severe. trace sits below debug and is
filtered out by a sink's default minLevel (LogLevel.debug) unless a
sink explicitly lowers it — useful for high-volume detail (e.g. raw
protocol frames) that should stay off unless deliberately enabled.
Each level has a matching convenience method on BoundLogger (BoundLogger.trace, BoundLogger.debug, BoundLogger.info, BoundLogger.warning, BoundLogger.error, BoundLogger.critical):
final log = getLogger();
log.trace('raw_frame', context: {'bytes': 128}); // usually filtered out
log.debug('cache_miss', context: {'key': 'user:42'});
log.info('user_login', context: {'user_id': 42});
log.warning('slow_query', context: {'duration_ms': 1500});
log.error('payment_failed', context: {'error': 'timeout'});
log.critical('out_of_memory');
Values
Properties
- 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 - 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