LoggerInterface class abstract

Where FlutterDevToolkit.logger.log calls are routed.

Implement this to forward log entries somewhere other than the built-in in-memory buffer (e.g. a remote log service), while still feeding the Logs tab by also storing them for logEntries. Pass an instance via DevToolkitConfig(logger: ...).

Implementers

Constructors

LoggerInterface()

Properties

hashCode int
The hash code for this object.
no setterinherited
logEntries List<LogEntry>
Entries available for the Logs tab to render. Implementations that don't retain entries in memory can leave this at the default empty list.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Discards retained entries, if any.
log(String message, {LogLevel level = LogLevel.debug, Set<LogTag> tags = const {}}) → void
Records a log entry.
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