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

Using a custom logger requires set_logger in every task #21

Closed
steveklabnik opened this issue Feb 15, 2015 · 2 comments
Closed

Using a custom logger requires set_logger in every task #21

steveklabnik opened this issue Feb 15, 2015 · 2 comments

Comments

@steveklabnik
Copy link
Member

Issue by seanmonstar
Wednesday Aug 27, 2014 at 16:24 GMT

For earlier discussion, see rust-lang/rust#16794

This issue was labelled with: A-libs in the Rust repository


Currently, the logger is stored in TLS. It's fine to setup a logger at the start of your program, but if you use spawn a lot, it's cumbersome to remember in each call to setup your logger again.

I think tasks should inherit the logger from the task that spawned it, perhaps with an option to turn it off (less important).

cc #3309

@seanmonstar
Copy link

This issue is no longer relevant, since log is now a global logger, and not stored per thread.

@steveklabnik
Copy link
Member Author

Thanks!

EFanZh pushed a commit to EFanZh/log that referenced this issue Jul 23, 2023
…emplate-1.2.0

Bump tinytemplate from 1.1.0 to 1.2.0
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

No branches or pull requests

2 participants