protected String toString(final AuditActionContext auditActionContext) {
        if (auditFormat == AuditFormats.JSON) {
            val builder = new StringBuilder();
            try {
                var writer = useSingleLine
                    ? MAPPER.writer(new MinimalPrettyPrinter())
                    : MAPPER.writerWithDefaultPrettyPrinter();
                builder.append(writer.writeValueAsString(getMappedAuditActionContext(auditActionContext)));
                
                if (!useSingleLine) {
                    builder.append('\n');
                }
            } catch (final Exception e) {
                throw new IllegalArgumentException(e.getMessage(), e);
            }
            return builder.toString();
        }
        return getAuditLineString(auditActionContext);
    }
Separator for single line log entries.
core/cas-server-core-audit-api/src/main/java/org/apereo/inspektr/audit/support/AbstractStringAuditTrailManager.java