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
In Section13.4, there's an exercise code section to write a VerbosityFilter of a Logger; however, the logger uses eprintln! macro to output the log, which output to stderr. Therefore, the run result in the website shows only No output.
Should we consider logging out messages from both stdout and stderr?
In this exercise, the original StderrLogger output to stderr, which user
cannot see the original log but "No output" in frontend". Change
`eprintln!` to `println!` to make it see-able in the frontend. Also, due
to the change, rename the logger struct.
Close: #2382
Signed-off-by: Alx-Lai <[email protected]>
In Section13.4, there's an exercise code section to write a
VerbosityFilter
of aLogger
; however, the logger useseprintln!
macro to output the log, which output tostderr
. Therefore, the run result in the website shows onlyNo output
.Should we consider logging out messages from both
stdout
andstderr
?Comparison
In Rust Playground:
In Comprehensive Rust:
The text was updated successfully, but these errors were encountered: