This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This colorizing :class:`logging.Formatter` implementation adds ANSI color | |
sequences to make logging output more readable. | |
SQLAlchemy queryies are treated specially: Pygments formats the query | |
string and the bind params. Python tracebacks are also formatted by | |
Pygments. Package names vary their colors as well, see the MY_APP_NAME | |
setting. | |
If you're configuring logging via a INI file, add this formatter like so: |