Eccoes class

A utility class for logging and debugging in Ecco.

Constructors

Eccoes.new()

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

currentLogLevel EccoesLogLevel
Gets the current log level.
no setter

Static Methods

disable() → void
Disables logging.
enable() → void
Enables logging.
log(String message, {EccoesLogLevel level = EccoesLogLevel.info}) → void
Logs a message if logging is enabled and the message's level is at or above the current log level.
setLogLevel(EccoesLogLevel level) → void
Sets the minimum log level for messages to be displayed.
setTestLogCallback(void callback(String)?) → void
Sets a callback function for capturing log messages in tests.