Skip to content

Stamp every log line, including captured script output - #10

Merged
rodchristiansen merged 1 commit into
mainfrom
fix/stamp-script-output
Sep 3, 2026
Merged

Stamp every log line, including captured script output#10
rodchristiansen merged 1 commit into
mainfrom
fix/stamp-script-output

Conversation

@rodchristiansen

Copy link
Copy Markdown
Contributor

A script's stdout and stderr were logged as one DEBUG record with embedded newlines, so every line after the first landed in the file without a stamp or level. The writer now emits one stamped record per non-blank line of any message, and captured output is logged per line as [OUTPUT] <script>: line, stdout at INFO and stderr at WARN. Tests cover the line splitting and the tagging.

A script's stdout and stderr were logged as one DEBUG record with embedded
newlines, so every line after the first landed in the file without a stamp
or level. The writer now emits one stamped record per non-blank line of any
message, and captured output is logged per line as "[OUTPUT] <script>: line",
stdout at INFO and stderr at WARN, so a reader can tell the tool's own lines
from what it ran and nothing in the file is ever unstamped.
@rodchristiansen
rodchristiansen merged commit f116e2c into main Sep 3, 2026
2 checks passed
@rodchristiansen
rodchristiansen deleted the fix/stamp-script-output branch September 3, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant