def filter(self, record):
    'Filter any warnings (or above) to turn them red.'
    if (record.levelno >= logging.WARNING):
        record.msg = (colorize(record.msg, 'red') + ' ')
    return True
Filter any warnings (or above) to turn them red.
def filter(self, record):
    
    if (record.levelno >= logging.WARNING):
        record.msg = (colorize(record.msg, 'red') + ' ')
    return True