@Override
    public String summarizeStackTrace(final String message, final Throwable throwable) {
        val builder = new StringBuilder(StringUtils.defaultIfBlank(message, throwable.getClass().getName())).append('\n');
        Arrays.stream(throwable.getStackTrace()).limit(LINES_TO_SUMMARIZE).forEach(trace -> {
            val error = String.format("\t%s:%s:%s%n", trace.getFileName(), trace.getMethodName(), trace.getLineNumber());
            builder.append(error);
        });
        return builder.toString();
    }
System property to enable/disable log message summarization.
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/logging/DefaultLogMessageSummarizer.java