recordLog static method
Buffer r and emit it on onLogRecord, after the registered
CrumbsRedaction.redactor (if any) ran over its text; dropped when
the redactor throws.
Implementation
static void recordLog(LogRecordEntry r) {
if (_paused) return;
final LogRecordEntry? redacted = CrumbsRedaction.redactLogRecord(r);
if (redacted == null) return;
_logs.addLast(redacted);
while (_logs.length > _capacityOf(CrumbsKind.logs)) {
_logs.removeFirst();
}
_logStream.add(redacted);
}