Open Jajcus opened 6 months ago
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.
did you try use custom_appender ?
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.