-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve logging #189
Comments
Hi @graham2071! Thanks for your comment, you are totally right that we need to improve our logging framework. In fact, we do use We are a bit reluctant to force all logs to force the use of Please let me know where we are using |
I first noticed the prints in bw2data: https://github.com/search?q=repo%3Abrightway-lca%2Fbrightway2-data%20print(&type=code I wish I could contribute but quite available right now. I understand that some users may prefer unstructured logs (though structlog console outputs are really nice). It should be possible to use |
Hello, I am using bw2data, bw2io and bw2calc. Those packages use
print
function for logs, which is a bad practice.Logging is not configurable, no levels, etc.
A first option is to use python logging module.
Better option includes to use structured logging such as structlog. This would allow to enable observability for those who need it.
The text was updated successfully, but these errors were encountered: