public static void error(final Logger logger, final String format, final Object... objects) {
        if (logger.isErrorEnabled()) {
            logger.error(format, objects);
        }
    }
error log.

@param logger   logger
@param format   format
@param objects objects
shenyu-common/src/main/java/org/apache/shenyu/common/utils/LogUtils.java