src/main/java/com/arpnetworking/logback/serialization/steno/StenoSerializationHelper.java
public static void endStenoWrapper(
            final ILoggingEvent event,
            final String eventName,
            @Nullable final List<String> contextKeys,
            @Nullable final List<Object> contextValues,
            final JsonGenerator jsonGenerator,
            final ObjectMapper objectMapper,
            final StenoEncoder encoder)
            throws IOException {

        jsonGenerator.writeFieldName("context");
        objectMapper.writeValue(
                jsonGenerator,
                StenoSerializationHelper.createContext(
                        encoder,
                        event,
                        objectMapper,
                        contextKeys,
                        contextValues));
        jsonGenerator.writeObjectField("id", StenoSerializationHelper.createId());
        jsonGenerator.writeObjectField("version", "0");
        jsonGenerator.writeEndObject(); // End log message
        jsonGenerator.writeRaw('\n');
        jsonGenerator.flush();
    }
public static void endStenoWrapper(
            final ILoggingEvent event,
            final String eventName,
            @Nullable final List<String> contextKeys,
            @Nullable final List<Object> contextValues,
            final JsonGenerator jsonGenerator,
            final ObjectMapper objectMapper,
            final StenoEncoder encoder)
            throws IOException {

        jsonGenerator.writeFieldName("context");
        objectMapper.writeValue(
                jsonGenerator,
                StenoSerializationHelper.createContext(
                        encoder,
                        event,
                        objectMapper,
                        contextKeys,
                        contextValues));
        jsonGenerator.writeObjectField("id", StenoSerializationHelper.createId());
        jsonGenerator.writeObjectField("version", "0");
        jsonGenerator.writeEndObject(); // End log message
        jsonGenerator.writeRaw('\n');
        jsonGenerator.flush();
    }
public static void endStenoWrapper ( final ILoggingEvent event , final String eventName , @ Nullable final List < String > contextKeys , @ Nullable final List < Object > contextValues , final JsonGenerator jsonGenerator , final ObjectMapper objectMapper , final StenoEncoder encoder ) throws IOException { jsonGenerator . writeFieldName ( "context" ) ; objectMapper . writeValue ( jsonGenerator , StenoSerializationHelper . createContext ( encoder , event , objectMapper , contextKeys , contextValues ) ) ; jsonGenerator . writeObjectField ( "id" , StenoSerializationHelper . createId ( ) ) ; jsonGenerator . writeObjectField ( "version" , "0" ) ; jsonGenerator . writeEndObject ( ) ; // End log message jsonGenerator . writeRaw ( ' ' ) ; jsonGenerator . flush ( ) ; }
Complete writing the Steno JSON wrapper.

@since 1.8.0

@param event Instance of <code>ILoggingEvent</code>.
@param eventName The name of the event.
@param contextKeys The <code>List</code> of context keys.
@param contextValues The <code>List</code> of context values.
@param jsonGenerator <code>JsonGenerator</code> instance.
@param objectMapper <code>ObjectMapper</code> instance.
@param encoder <code>StenoEncoder</code> instance.
@throws IOException If writing JSON fails.
Complete writing the Steno JSON wrapper .