RingBufferSink

class RingBufferSink

Keeps the last capacity records for the debug overlay and bug reports.

packages/shared/src/log.ts:49

Members

constructor

constructor(capacity: number) → RingBufferSink
capacitynumber
Undocumented

clear

clear() → void

records

records() → readonly LogRecord[]

Newest last. Copied, so callers cannot mutate the buffer.

write

write(record: LogRecord) → void
recordLogRecord
Undocumented