Skip to main content

ingest

Function ingest 

Source
pub fn ingest(tag: &str, line: &str)
Expand description

Ingest a captured stdout/stderr line from a child process under tag.

A child that uses Scribe (Python scribe_logger in a docker container, or any binary that mirrors records to its console) emits lines already in console format — MM-DD HH:MM:SS.mmm L tag msg. Re-logging the whole line as a fresh record’s msg double-stamps the timestamp/level/tag (it appears once in the JSON fields and again embedded in msg). When the line is recognised as Scribe console output, strip the prefix and re-emit just the inner message at its original level under tag; otherwise treat the line as opaque output and log it verbatim at Info.