Logger class abstract

Host-injected logger interface (NFR-OBS-001).

Core code must not call print or debugPrint directly (NFR-OBS-002). A Logger instance is injected by the host application; a default no-op implementation is used when none is provided.

Implementers

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

debug(String message, [Map<String, Object?>? context]) → void
info(String message, [Map<String, Object?>? context]) → void
log(LogLevel level, String message, {Map<String, Object?>? context, Object? error, StackTrace? stackTrace}) → void
logError(String message, Object error, [StackTrace? stackTrace, Map<String, Object?>? context]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
warn(String message, [Map<String, Object?>? context, Object? error]) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited