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

Add "For Implementers" In Documentation For Log::flush() #522

Closed
AldaronLau opened this issue Jul 30, 2022 · 1 comment · Fixed by #620
Closed

Add "For Implementers" In Documentation For Log::flush() #522

AldaronLau opened this issue Jul 30, 2022 · 1 comment · Fixed by #620

Comments

@AldaronLau
Copy link

There is almost no information / clarity on what flush() should do and if it's called by any of the macros in this crate. I think it should say something like:

This method isn’t called automatically by the log! macros. It can be called manually at shutdown.

@AldaronLau AldaronLau changed the title Add "For Implementers" For log::flush() Add "For Implementers" In Documentation For Log::flush() Jul 30, 2022
@KodrAus
Copy link
Contributor

KodrAus commented Aug 31, 2022

Thanks for the suggestion @AldaronLau! This sounds like a nice clarification to me.

EFanZh pushed a commit to EFanZh/log that referenced this issue Jul 23, 2023
Resolved rust-lang#522

* Add dep tracing v0.1.37 to binstalk
* Use `tracing` instead of `log` for logging in binstalk
* Rm dev dep `env_logger` since `log` is no longer used
* Rm unused dep `log` from binstalk

* Replace use of `log` with `tracing` in crates/bin
* Enable feat std of dep log in crates/bin

* Add dep tracing v0.1.37 to binstalk-downloader
* Replace use of `log` with `tracing` in binstalk-downloader
* Rm unused dep `log` from binstalk-downlaoder


* Wrap `ops::{install, resolve}` in `tracing::instrument`
* Wrap `Download::and_{extract, visit_tar}` in `instrument`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
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

Successfully merging a pull request may close this issue.

2 participants