-
Notifications
You must be signed in to change notification settings - Fork 89
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
Logging feature is broken for env_logger v0.5.0+ #140
Comments
I think I'm going to remove logging altogether. It made sense when |
I was just looking into logging and found it weird that I need to set the environment variable, since logging should be initialized by the application using your crate. Then I looked into the code and you really use All a library crate should do is to use the In my case we already have all the logging setup, so when I want logging for your crate I will just enable it (we only enable logging for our crates by default). If you want to give your users the option of using your crate without any logging capabilities compiled in, you can still have it behind a |
Looks like
env_logger::init()
just panics and doesn't need to be unwrapped manually anymore, starting from v0.5.0: https://github.com/sebasmagri/env_logger/releases/tag/v0.5.0The text was updated successfully, but these errors were encountered: