public LogEvent prepareLogEvent(final LogEvent logEvent) {
        val newLogEventBuilder = getLogEventBuilder(logEvent);
        return newLogEventBuilder.build();
    }
Prepare log event log event.

@param logEvent the log event
@return the log event
core/cas-server-core-logging-api/src/main/java/org/apereo/cas/logging/LoggingUtils.java