DVCrashBreadcrumbs class

The last capacity breadcrumbs, redacted on the way in.

A ring buffer with a declared size, so a long session costs what a short one does. Redaction happens when a breadcrumb is added rather than when a report is written: the report is written by a handler in a process that is going down, which is no place to be walking maps.

Constructors

DVCrashBreadcrumbs({int capacity = 64, Set<String> sensitive = const <String>{}, DateTime clock()?})

Properties

capacity → int
How many breadcrumbs are kept.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshot → List<DVCrashBreadcrumb>
The breadcrumbs, oldest first.
no setter

Methods

add(String category, String message, {Map<String, Object?> data = const <String, Object?>{}}) → void
clear() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redactMap(Map<String, Object?> data) → Map<String, Object?>
data with every sensitive value replaced by the logger's marker, at any depth, and reduced to what JSON can carry.
toString() → String
A string representation of this object.
inherited

Operators

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