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
replace custom logging with python standard library #262
Conversation
I am +1 to the change in general. I didn't have time to investigate why Travis tests fail, but that should be fixed. I'll try to build my stack tomorrow with this PR to see if things work. |
I think we already agreed that this is a desirable change, but this will need review and testing before it is ready to merge. I've been away from email for a couple of days and am catching up but I will try to help review this today. |
Ok, logging configuration from a dict was only added in Python 2.7. I've added a suitable backport for python 2.6 and tox.ini to make testing outside of travis easier. |
Okay, this doesn't look quite right to me...
|
Why am I seeing different output when I run with |
Also, it doesn't appear that hit build without verbose output is hiding the build output.
|
@vbraun - Thanks for the pull request. I like how our build logs are now timestamped:
Here's what I believe is currently missing:
|
@vbraun - repinging on this one. Do you need anything from me? |
No, I agree. Just need some time. |
This simplifies the logging: The root logger is the default, and the package logger contains the package name in square brackets. Also, a custom formatter is added for level-dependent formatting.
Ok, fixed all conflicts and the issues. I've also added gray = debug color. The verbose mode is what is now |
I tested this PR, and it fixes most of the annoyances that's been bothering me, like
Tests pass, so I am merging this. If there are any further issues, we can fix that with subsequent PRs. Thanks @vbraun for this work, it greatly improves the experience. |
replace custom logging with python standard library
Thanks @certik - you are a rockstar :) |
This looks like it may have broken the PyClaw builds on Travis (unconfirmed suspicion): clawpack/pyclaw#442 I've moved the PyClaw CI off our master branch and to the 0.3 tag. |
This patch removes hdist_logging.py with the Python logging module. The logging configuration is in a yaml file, pretty standard.