-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat(timber): prettier logs #263
Conversation
comment out of date, see updated top level comment
|
a6b74d1
to
5dd04d9
Compare
comment out of date, see updated top level comment
|
If I remember correctly we were talking about timber eventually taking care of both logging with tracing crate and printing to stdout. I think your second comment saying that we should only print I wanted to also say that |
crates/timber/src/formatter.rs
Outdated
.without_time() | ||
.with_target(false) | ||
.pretty() | ||
.with_source_location(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we (the rover team) are debugging-debugging, I think the source_location
is pretty useful. Let's keep it!
35a0eb5
to
2bb6c1c
Compare
By the way, I think this is more of stab at #220! |
400171c
to
7507a0e
Compare
7507a0e
to
c21d93a
Compare
c21d93a
to
401c606
Compare
progress messages are now eprintln! and not tracing::info! by default, no logs are printed to the user if a log level is specified, they are formatted using tracings pretty subscriber
401c606
to
27fac89
Compare
this is a crack at #220 that gives us some prettier logs and also separates logging concerns from user-facing output concerns.
log usage is still the same, folks still pass
--log <log-level>
, and instead oftracing::info
for user-facing output, we directly useeprintln
.log formatting is also a bit different and a bit more helpful for debugging than our previous formatting: