ZenLogger class
Centralized logging system for ZenState
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 Properties
- logFunction ↔ void Function(String message, {String? name})?
-
Custom log function for testing
getter/setter pair
- testMode ↔ bool
-
Test mode flag
getter/setter pair
Static Methods
-
init(
{void logHandler(String message, LogLevel level)?, void errorHandler(String message, [dynamic error, StackTrace?])?}) → void - Initialize the logger with custom handlers
-
logDebug(
String message) → void - Log a debug message (only in debug mode)
-
logError(
String message, [dynamic error, StackTrace? stackTrace]) → void - Log an error message with optional error object and stack trace
-
logInfo(
String message) → void - Log an info message
-
logWarning(
String message) → void - Log a warning message