[GH-ISSUE #2736] Prefix Job StdOut and StdErr #1238

Closed
opened 2026-03-01 21:49:52 +03:00 by kerem · 2 comments
Owner

Originally created by @qoomon on GitHub (Apr 20, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2736

Act version

0.2.76

Feature description

Currently the stdout and stderr logs of a job are just logged with a colored prefix of | that makes it quite hard to know to which job a log line belongs to.

Therefore I would suggest to prefix all output lines a like to the other job related logs e.g., [build.yaml/test-job]

WDYT?

Originally created by @qoomon on GitHub (Apr 20, 2025). Original GitHub issue: https://github.com/nektos/act/issues/2736 ### Act version 0.2.76 ### Feature description Currently the stdout and stderr logs of a job are just logged with a colored prefix of `| ` that makes it quite hard to know to which job a log line belongs to. Therefore I would suggest to prefix all output lines a like to the other job related logs e.g., `[build.yaml/test-job]` WDYT?
kerem 2026-03-01 21:49:52 +03:00
Author
Owner

@ChristopherHX commented on GitHub (Apr 21, 2025):

I think this was by design to reduce the noise of long workflow + job names filling the Terminal, if this is not opt in like a cli flag, I think this FR needs 100+ upvotes.

Afaik act | cat would work. The long form is only used if colors are disabled / no tty is attached, so NO_COLOR env might have the same effect.

If you want to parse the output --json is the way to go.

<!-- gh-comment-id:2817875135 --> @ChristopherHX commented on GitHub (Apr 21, 2025): I think this was by design to reduce the noise of long workflow + job names filling the Terminal, if this is not opt in like a cli flag, I think this FR needs 100+ upvotes. Afaik `act | cat` would work. The long form is only used if colors are disabled / no tty is attached, so `NO_COLOR` env might have the same effect. If you want to parse the output `--json` is the way to go.
Author
Owner

@qoomon commented on GitHub (Apr 21, 2025):

@ChristopherHX thx for the explanation. And thanks for the hint towards --json

<!-- gh-comment-id:2817983083 --> @qoomon commented on GitHub (Apr 21, 2025): @ChristopherHX thx for the explanation. And thanks for the hint towards `--json`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1238
No description provided.