DefaultISpectLoggerHistory class

In-memory ILogHistory backed by a ListQueue.

Respects ISpectLoggerOptions.useHistory, ISpectLoggerOptions.enabled, and ISpectLoggerOptions.maxHistoryItems. Exposes an unmodifiable view via history that is lazily cached and invalidated on mutation.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
history → List<ISpectLogData>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → ISpectLoggerOptions
final

Methods

add(ISpectLogData data) → void
override
addForTesting(ISpectLogData data) → void
Adds data bypassing the ISpectLoggerOptions.useHistory guard.
clear() → void
override
dispose() → void
Releases resources (e.g. auto-save timers in FileLogHistory).
override
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