@VisibleForTesting
    static StringBuilder escapeAndQuote(StringBuilder message, String input) {
        message.append('"');
        boolean isEscaped = false;
        for (int i = 0; i < input.length(); i++) {
            final char c = input.charAt(i);
            if (c == '\\') {
                isEscaped = true;
            } else {
                if (c == '"' && !isEscaped) {
                    // We escape only '"' for a log message.
                    message.append('\\');
                }
                isEscaped = false;
            }
            message.append(c);
        }
        message.append('"');
        return message;
    }
Writes an access log for the specified {@link RequestLog}.
core/src/main/java/com/linecorp/armeria/server/logging/AccessLogger.java