if os.environ['SERVER_SOFTWARE'].find('Development') >= 0:
    import logging
old_error = logging.error

def red_error(msg, *args, **kwargs):
    old_error('\x1b[22;31m%s\x1b[0;0m' % msg, *args, **kwargs)
logging.error = red_error
How does one make logging color in Django/Google App Engine?