You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 onstdout
. Unexpectedly the logging messages got mixed with the output.Expected behaviour: 'console' logging goes to stderr, regular program output (including
println!()
or explicit writes tostdout
) 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.
The text was updated successfully, but these errors were encountered: