srhinos / primelooter

A small python bot which automatically claims amazon prime gaming loot :D
GNU General Public License v3.0
50 stars 3 forks source link

[FEAT] Colorize Logs #5

Open srhinos opened 2 years ago

srhinos commented 2 years ago

Is your feature request related to a problem? Please describe. The logs are super boring to look at and sometimes hard to differentiate between each line.

📝Describe the solution you'd like Colorize the logs to make them more fun to look at and easier to digest.

⚙️Additional context

I've done this for a side project in the past and have been a big time admirer of the colorization of the Twitch Channel Points Miner so this should be pretty easy to implement just by cloning behavior from other inspirations.

I'll have to remember about logging color codes to file so a fun regex is in order to clean out color codes (or maybe just smart programming on a per logging handler basis?)

Coldblackice commented 2 years ago

a big time admirer of the colorization of the Twitch Channel Points Miner

Before even reading the post, this is the exact example that came to my mind, as well :laughing:

This is a great idea, it really makes monitoring analysis a breeze. I can also help out adding this. It'd be especially useful in making claim-fails stand out, and perhaps even sub-delineate between no-account fails vs. misc-fail's.

srhinos commented 1 year ago

Thinking on this now a year and a half later, I'm thinking going with loguru is just a stupidly easy addition to check this box.