Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console appender uses stdout instead of stderr #33

Open
Jajcus opened this issue May 10, 2024 · 0 comments
Open

console appender uses stdout instead of stderr #33

Jajcus opened this issue May 10, 2024 · 0 comments

Comments

@Jajcus
Copy link

Jajcus commented May 10, 2024

I have been using fast_log crate for my logging, as it happened to be used in an example code I started with. Was good enough for me until my code had to generate some output on stdout. Unexpectedly the logging messages got mixed with the output.

Expected behaviour: 'console' logging goes to stderr, regular program output (including println!() or explicit writes to stdout) go to stdout, so consumers can differentiate those.

Actual behaviour: console logging goes to stdout, where the actual program output belongs.

Note: changing this now could be a breaking change for anyone who relies on current (broken) behaviour, e.g. when calling binaries built with this crate in a shell scripts and parsing its logging output.

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

No branches or pull requests

1 participant