We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice to have some colors added to the mopidy log output to make it easier to spot errors, warnings, etc.
A quick search led me to this library: https://pypi.python.org/pypi/coloredlogs
I tested it out quickly by just inserting that snippet of code, and this was what I got:
The text was updated successfully, but these errors were encountered:
This would be really nice.
Though, I'm more positive to colorama since it is packaged in Debian and also works on Windows.
Sorry, something went wrong.
I would prefer if the dependency is optional. Both because I like few dependencies in general, and since none of those are packaged in Arch.
log: Colorize logs, unless logging/color is false
47b4479
Fixes mopidy#772
Nice, I like how we get colorized logs and yet do not get any new dependencies. Thanks @jodal!
I found colorama to be quite optional, but very useful the second you require Windows support.
If we ever start supporting Windows seriously, we just need to add an optional dependency on colorama and if colorama is present run:
import colorama colorama.init()
...and let the colorization code run on Windows as well, and it should work seamlessly there too.
jodal
Successfully merging a pull request may close this issue.
It would be nice to have some colors added to the mopidy log output to make it easier to spot errors, warnings, etc.
A quick search led me to this library: https://pypi.python.org/pypi/coloredlogs
I tested it out quickly by just inserting that snippet of code, and this was what I got:
The text was updated successfully, but these errors were encountered: