Hi all, I would like to propose an enhancement for the log output generated from the Home Assistant so it would display colored output for INFO, ERROR, WARNING log types.
This way it is hard to look for the errors in the log output.
It’s already possible - just install the colorlog
Python package, and Home Assistant will use it.
Hi!
This is already available if you install colorlog package.
pip3 install colorlog
After installing, how do you show the log in color? It’s still black in the About page. I refreshed page and restarted HASS to try to get it to show.
colorlog
works only in the terminal and not on the About page.
so with cat or tail? It doesn’t appear to work with either of those
Thank you everyone.
the log file is not colored. the console output is colored.
If you run HA manually with colorlog it will be coloured. If you read it from a log file that’s pure text there’s no way to have that coloured.
Got it. Thank you
…or if you want something that isn’t python infested, try ccze. (most distro’s have it packaged).
tail -f /your/log | ccze