Skip to content

console_sink

sqllocks_spindle.streaming.sinks.console_sink

Console (stdout) streaming sink — no external dependencies.

Classes

ConsoleSink

Bases: StreamWriter

Prints events as JSON Lines to stdout.

Useful for local development and quick debugging. No external dependencies.

Parameters:

Name Type Description Default
indent int | None

JSON indent level (None for compact single-line output, 2 for pretty-printed).

None
prefix str

Optional string prepended before each JSON line.

''
file

Output file object (defaults to sys.stdout). Injectable for testing.

None