ZenLogLevel enum
Log levels for Zenify framework logging
Controls the verbosity of framework logs. Higher levels include all lower levels.
Example:
// Production: Only errors
ZenConfig.logLevel = ZenLogLevel.error;
// Development: Info and above
ZenConfig.logLevel = ZenLogLevel.info;
// Debugging Rx issues: Everything including trace
ZenConfig.logLevel = ZenLogLevel.trace;
Values
- none → const ZenLogLevel
-
No logging at all (production)
const ZenLogLevel(0) - error → const ZenLogLevel
-
Only critical errors (recommended for production)
const ZenLogLevel(1) - warning → const ZenLogLevel
-
Errors and warnings (recommended for production)
const ZenLogLevel(2) - info → const ZenLogLevel
-
Errors, warnings, and general info (recommended for development)
const ZenLogLevel(3) - debug → const ZenLogLevel
-
Detailed debug information (for development/debugging)
const ZenLogLevel(4) - trace → const ZenLogLevel
-
Very verbose including Rx tracking (only for debugging framework issues) ⚠️ WARNING: Creates excessive logs - only enable when debugging reactive state issues
const ZenLogLevel(5)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- level → int
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldLog(
ZenLogLevel configuredLevel) → bool - Check if this log level should be logged given the configured level
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ZenLogLevel> - A constant List of the values in this enum, in order of their declaration.