Skip to main content

Module stdout

Module stdout 

Source
Expand description

Stdout event sink — writes events as JSON to stderr.

Uses stderr rather than stdout so it does not interfere with structured program output on stdout.

Registered only when asked for: a program that names no sink writes no event to its error output. A host that wants it — a container whose platform keeps stderr, say — builds it with create_sink from { type: stdout }, or registers StdoutSink on its EventRegistry.

Structs§

StdoutSink
Writes each event as a single-line JSON object to stderr.