Skip to content

LogRing beta ​

Interface of @v12-engine/engine

ts
export interface LogRing

The last entries, kept: what a console panel shows, and what goes with a report of a crash

Members ​

clear ​

ts
clear(): void;

Empties the ring of the entries it keeps

entries ​

ts
entries(): readonly LogEntry[];

The entries kept, the oldest first

onEntry ​

ts
onEntry(listener: LogSink): () => void;

Calls back for each entry as it comes. Returns what stops it

sink ​

ts
sink: LogSink;

The sink to give to a logger (Logger.to) to have the ring keep what it is sent