I am logging output of traceback.format_exc(). Is it possible to color it using
colored-traceback.py while using print or alternative?
Example code:
import traceback
import colored_traceback
colored_traceback.add_hook(always=True)
a = 1 / 0 # prints colored traceback results
try:
a = 1 / 0
except:
traceback.print_exc() # prints in color white
print(traceback.format_exc()) # prints in color white