Skip to content

@jsvision/core / LogSink

Type Alias: LogSink

LogSink = "auto" | "file" | "stderr" | "ring"

Defined in: safety/logger.ts:38

Where log records go:

  • auto — a file if a path is set, else stderr when it is a distinct device, else the ring.
  • file — append to path (or the JSVISION_LOG env var).
  • stderr — write to fd 2 (rejected if it is the same device as the screen).
  • ring — an in-memory buffer readable via Logger.entries (also self-enables).