Skip to main content

Module container_log

Module container_log 

Source
Expand description

The log drivers of the containers, which write the container output to the CRI log files or to journald.

Modulesยง

cri ๐Ÿ”’
The logger of the CRI log format.
journald ๐Ÿ”’
The logger which writes the container output to journald.
line_buffer ๐Ÿ”’
Collecting the output into whole lines, see LineBuffer.
log_file ๐Ÿ”’
Writing a log file on disk, see LogFile.

Structsยง

ContainerLog ๐Ÿ”’
The log drivers of a container.
Line ๐Ÿ”’
A whole or partial line without its ending. Partial means that the line had no ending yet: it continues in the next entry, paused, or the output ended without one, the same as the P marker of the CRI log.

Enumsยง

Driver ๐Ÿ”’
A configured log driver.
Text ๐Ÿ”’
The text of a Line: borrowed from the chunk which held all of it, or collected across chunks in the buffer of its pipe.

Functionsยง

lines ๐Ÿ”’
Split a chunk into its lines. Every line but the last ends with a newline, the last one is partial if the chunk does not end with one. An empty chunk has no lines.
strip_line_ending ๐Ÿ”’
Strip the line ending, which a terminal turns into โ€œ\r\nโ€.

Type Aliasesยง

SharedContainerLog ๐Ÿ”’
A container log shared by its users, like the read loops of the stdio and the log reopening.