Skip to content

Print cargo-make logs to stderr instead of stdout #1229

Open
@MatejKafka-MSFT

Description

It is an almost universal convention among CLI tools to render logs to stderr to leave stdout free for actual output to be processed by other tools. cargo-make renders output to stdout and does not provide any way to redirect it, which causes issues if a task writes e.g. JSON to stdout and the caller wants to parse it.

My feature request is for cargo-make to print logs stderr by default, or at least make it configurable. It should be enough to change a single line here: https://github.com/sagiegurari/cargo-make/blob/master/src/lib/logger.rs#L169

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions