Skip to content

Instantly share code, notes, and snippets.

View anti1869's full-sized avatar

Dmitry Litvinenko anti1869

View GitHub Profile
@anti1869
anti1869 / color-logs.py
Created January 4, 2016 10:41
How To Add Colour To Logs And Terminal
#!/usr/bin/env python
"""
Colour logs, printing colour escape codes and some ASCII.
You need to ``pip install colorlog`` to run this.
"""
import logging
from logging.config import dictConfig