Logger class

A static logging utility for the lean_builder package.

Provides different logging levels with color-coded output and optional stack trace information. Uses a singleton pattern to ensure consistent logging throughout the application.

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

log(LogLevel level, String message) → void
Logs a message at the specified level if it meets the current threshold.
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

androidPen ↔ AnsiPen
Pen for Android-specific logs.
getter/setter pair
iosPen ↔ AnsiPen
Pen for iOS-specific logs.
getter/setter pair
level LogLevel
Sets the minimum logging level.
no getter
mutedPen ↔ AnsiPen
Pen for muted/gray logs.
getter/setter pair

Static Methods

android(String message) → void
Logs an Android-specific message. Use for messages related to Android platform operations.
debug(String message) → void
Logs a debug message.
error(String message) → void
Logs an error message, optionally with a stack trace.
fine(String message) → void
Logs a fine-level message (lowest priority).
info(String message) → void
Logs an informational message.
ios(String message) → void
Logs an iOS-specific message. Use for messages related to iOS platform operations.
listed(String message) → void
Logs a muted/gray message. Use for less important information.
success(String message) → void
Logs a success message.
warning(String message) → void
Logs a warning message.