Staticadda log proxy
StaticclearStaticcompressStaticcreateCreate the statistics for a model ID.
The model ID to create statistics for
The created statistics object.
StaticdebugStaticdisplayDisplay the deduplicated log buffer in a table.
Gated behind the DEBUG threshold by default — a clean load should leave a quiet console (issue #301); pass force for explicit dumps (CLI -v).
dump regardless of the current threshold
StaticerrorStaticgetStaticgetStaticgetStaticgetStaticinfoStaticinitializeStaticisIs a given level at or above the current threshold?
level to test
true when messages at this level echo to the console
StaticprintStaticremoveRemove a previously added proxy (no-op if absent).
the proxy to remove
StaticsetSet the console-echo threshold. Embedders (e.g. Share) call this to quiet or expand conway's console output; the CLI maps -q/-v/-vv here.
new threshold
StaticsetReplace the console sink (e.g. the CLI routes all echoes to stderr so stdout stays parseable). Pass undefined to restore the default.
Optionalsink: LogSinkreplacement sink or undefined
Staticwarning
Logger class which supports logging statistics, as well as proxy logging interfaces for extended logging.
Entries are deduplicated (repeat messages increment a count and accumulate express IDs) and buffered for displayLogs()/proxies. Additionally, the first occurrence of each distinct entry at or above the current threshold is echoed to the console sink immediately, so warnings/errors are visible live without waiting for a displayLogs() dump.