MemoryLogOutput class

In-memory log output, primarily for tests.

Inheritance

Constructors

MemoryLogOutput()

Properties

hashCode → int
The hash code for this object.
no setterinherited
logs → List<LogEntry>
All records written so far, in order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Discards all recorded entries.
close() → Future<void>
Releases any resources held by this output.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(LogLevel level, String message, {Map<String, dynamic>? metadata}) → Future<void>
Writes a single log record.
override

Operators

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