Skip to main content

Module console

Module console 

Source
Expand description

Console formatting and output routing.

The module selects stdout, stderr, or native journal output and formats each event according to logging configuration.

Structsยง

ConsoleFormat
Selects the configured tracing formatter for each console event.
ConsoleVisitor ๐Ÿ”’
ConsoleWriter
Routes formatted tracing events to console streams or the native journal.

Enumsยง

Sink
Writable destination selected for one formatted tracing event.

Staticsยง

SYSTEMD_MODE ๐Ÿ”’
TERMINAL_MODE ๐Ÿ”’

Functionsยง

ansi_enabled
Whether to color the formatted line.
get_journal_stream ๐Ÿ”’
is_systemd_mode
Whether the process was started by systemd, sampled once.
is_terminal_mode
Whether standard input is attached to a terminal, sampled once.