if lvl >= logging.ERROR:
            # to avoid message formatting
            if self._logger.enable_for(ERROR_LEVEL):
                self._logger.error(self.format(record), extra=extra)