'The formatter for stderr'

def emit(self, record):

    if (record.levelno <= logging.INFO):
        stream = sys.stdout
    else:
        stream = sys.stderr
    if ((record.levelno < logging.DEBUG) or (not _conf.use_color)):
        print(record.levelname, end='', file=stream)
    else:
        from .utils.console import color_print
        if (record.levelno < logging.INFO):
            color_print(record.levelname, 'magenta', end='', file=stream)
        elif (record.levelno < logging.WARN):
            color_print(record.levelname, 'green', end='', file=stream)
        elif (record.levelno < logging.ERROR):
            color_print(record.levelname, 'brown', end='', file=stream)
        else:
            color_print(record.levelname, 'red', end='', file=stream)
    record.message = '{0}    [{1:s}]'.format(record.msg, record.origin)
    print((':    ' + record.message), file=stream)
