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