public static void startStenoWrapper ( final ILoggingEvent event , final String eventName , final JsonGenerator jsonGenerator , final ObjectMapper objectMapper ) throws IOException { final StenoSerializationHelper . StenoLevel level = StenoSerializationHelper . StenoLevel . findByLogbackLevel ( event . getLevel ( ) ) ; jsonGenerator . writeStartObject ( ) ; jsonGenerator . writeObjectField ( "time" , ISO_DATE_TIME_FORMATTER . format ( Instant . ofEpochMilli ( event . getTimeStamp ( ) ) ) ) ; jsonGenerator . writeObjectField ( "name" , eventName ) ; jsonGenerator . writeObjectField ( "level" , level . name ( ) ) ; }
Start writing the Steno JSON wrapper .