DVMemoryLogSink class
Keeps the most recent records, and only those.
Bounded on purpose. An unbounded in-process buffer is a memory leak with a respectable name: the longer a server stays up -- which is to say, the healthier it is -- the closer it gets to being killed by the diagnostics that were supposed to explain why it died.
- Implemented types
Constructors
- DVMemoryLogSink({int capacity = 500})
Properties
- capacity → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
records
→ List<
DVLogRecord> -
Oldest first.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
DVLogRecord record) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited