public static void serializeMDC()

in ecs-logging-core/src/main/java/co/elastic/logging/EcsJsonSerializer.java [194:205]


    public static void serializeMDC(StringBuilder builder, Map<String, ?> properties) {
        if (properties != null && !properties.isEmpty()) {
            for (Map.Entry<String, ?> entry : properties.entrySet()) {
                builder.append('\"');
                String key = entry.getKey();
                JsonUtils.quoteAsString(key, builder);
                builder.append("\":\"");
                JsonUtils.quoteAsString(toNullSafeString(String.valueOf(entry.getValue())), builder);
                builder.append("\",");
            }
        }
    }