public static void error(final Logger logger, final String msg, final Throwable throwable) {
        FunctionUtils.doIf(LOG_MESSAGE_SUMMARIZER.shouldSummarize(logger),
                __ -> logger.error(LOG_MESSAGE_SUMMARIZER.summarizeStackTrace(msg, throwable)),
                __ -> logger.error(msg, throwable))
            .accept(throwable);
    }
Error.

@param logger    the logger
@param msg       the msg
@param throwable the throwable
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/LoggingUtils.java