Closed PrincePepper closed 3 years ago
This will break if stderr is not connected to a tty or if the terminal is not vt100-compatible. There are libraries out there like coloredlogs or colorama which automate this properly but I am not sure their addition is meaningful considering that this is a GUI tool, not a CLI one. If you often find yourself looking into CLI dumps of a GUI tool then maybe the GUI is worth redesigning.
Thanks a lot. Sorry for bother
How do you like the idea of making code highlighting for a more beautiful display?
Now: My idea:
Sample code:
logger.info('Param get/set response: '+LoggerCustomColor.BOLD+'%s'+LoggerCustomColor.ENDC, e.response)
Here is the class itself
LoggerCustomColor
: