API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceLogOptions
Per-call metadata for Logger.debug/Logger.info/Logger.warn/Logger.error. - `source` renders as `[ExoJS][source]` in the default console sink (omit it for a bare `[ExoJS]` prefix). - `once` deduplicates by key: the second and later calls sharing the same key are dropped before sink dispatch, so pass a stable per-callsite key (e.g. `` `bitmaptext:${fontId}:${codepoint}` ``) to avoid per-frame spam. A key is claimed only by a call that survives severity filtering, so the `Debug`/`Info`/`Warning` calls a production build strips cost nothing and never shadow a later `error()` that reuses the key. The set of claimed keys is retained for the lifetime of the Logger and never evicted - that permanence is the guarantee `once` exists to provide, so keep keys drawn from a bounded, per-callsite vocabulary rather than from unbounded runtime data.
import { LogOptions } from '@codexo/exojs'Per-call metadata for Logger.debug/Logger.info/Logger.warn/Logger.error.
- `source` renders as `[ExoJS][source]` in the default console sink (omit it for a bare `[ExoJS]` prefix). - `once` deduplicates by key: the second and later calls sharing the same key are dropped before sink dispatch, so pass a stable per-callsite key (e.g. `` `bitmaptext:${fontId}:${codepoint}` ``) to avoid per-frame spam. A key is claimed only by a call that survives severity filtering, so the `Debug`/`Info`/`Warning` calls a production build strips cost nothing and never shadow a later `error()` that reuses the key. The set of claimed keys is retained for the lifetime of the Logger and never evicted - that permanence is the guarantee `once` exists to provide, so keep keys drawn from a bounded, per-callsite vocabulary rather than from unbounded runtime data.
data?: Record<string, unknown>error?: Erroronce?: stringsource?: string