Skip to content

Instantly share code, notes, and snippets.

@kergoth
kergoth / colorlog.py
Last active April 7, 2021 13:45
Colorizing log handler
# Courtesy http://plumberjack.blogspot.com/2010/12/colorizing-logging-output-in-terminals.html
# Tweaked to use colorama for the coloring
import colorama
import logging
import re
import sys
def remove_ansi(s):