
Python-colorlog allows colors to be placed in the format string, which is mostly useful when paired with a StreamHandler that is outputting to a terminal. This is accomplished by adding a set of terminal color codes to the record before it is used to format the string. This is the Python 2 version.