Logger class
A stub implementation of the Logger
class for platforms where the
logger
package is unavailable, such as Flutter Web.
This class provides basic logging functionality by using debugPrint
statements to output messages to the console. It supports logging messages
with different levels (error, warning, info, and debug).
Note: For platforms that support the logger
package, use conditional
imports to include the actual Logger
implementation. This stub is meant
for lightweight logging in environments like Flutter Web.
Constructors
- Logger()
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
-
d(
String message) → void - Logs a debug message.
-
e(
String message, {Object? error, StackTrace? stackTrace}) → void - Logs an error message with optional details and stack trace.
-
i(
String message) → void - Logs an informational message.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
w(
String message) → void - Logs a warning message.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited