def METHOD_NAME(self, record):
    try:
        msg = self.format(record)
        err = record.levelno >= logging.WARNING
        click.echo(msg, err=err)
    except (KeyboardInterrupt, SystemExit):
        raise
    except Exception:
        self.handleError(record)