timelyart / Kairos

Kairos aims to help you save time by automating repetitive tasks on TradingView such as scanning markets for setups, and refreshing alerts as well as creating new ones.
GNU General Public License v3.0
71 stars 31 forks source link

Coloured console log (nice to have) #81

Closed mrcrdwd closed 2 years ago

mrcrdwd commented 2 years ago

Would you consider adding some color to the console output? It can improve readability. There are different libraries like coloredlogs (my preference) and colorlog which make it quite easy to implement. The coloring can also be added to kairos.cfg.

timelyart commented 2 years ago

What kind of coloring do you want?

Something like:

Anything else? Do you want to be able to highlight specific keywords?

mrcrdwd commented 2 years ago

I'd say just use the default highlighting initially and use kairos.cfg to specify the environment variables so that everyone can customize the style to their liking?

Or when you decide to go without an external library go for the colors you suggest.

timelyart commented 2 years ago

For now, I don't care enough about console colour. So, I went with your preferred option. It also seems the easiest to set up.

I won't make a separate release for it but it is pushed to the master branche. Don't forget to install the library (or run install setup.py) if you are running in a virtual environment.