StandardJsonLogger implements JsonLogger { @Override public JsonLogger marker(Marker marker) { this.marker = marker; jsonObject.add("marker", gson.toJsonTree(marker.getName())); return this; } StandardJsonLogger(org.slf4j.Logger slf4jLogger,
                            FastDateFormat formatter, Gson gson,
                            String levelName,
                            Consumer<String> logOperation,
                            BiConsumer<Marker, String> logWithMarkerOperation); boolean isIncludeLoggerName(); void setIncludeLoggerName(boolean includeLoggerName); boolean isIncludeThreadName(); void setIncludeThreadName(boolean includeThreadName); boolean isIncludeClassName(); void setIncludeClassName(boolean includeClassName); @Override JsonLogger message(String message); @Override JsonLogger message(Supplier<String> message); @Override JsonLogger map(String key, Map map); @Override JsonLogger map(String key, Supplier<Map> map); @Override JsonLogger list(String key, List list); @Override JsonLogger list(String key, Supplier<List> list); @Override JsonLogger field(String key, Object value); @Override JsonLogger field(String key, Supplier value); @Override JsonLogger json(String key, JsonElement jsonElement); @Override JsonLogger json(String key, Supplier<JsonElement> jsonElement); @Override JsonLogger exception(String key, Exception exception); @Override JsonLogger stack(); @Override JsonLogger marker(Marker marker); @Override void log();  }
@Test public void testMarker() throws Exception { logger.marker(this.marker).log(); Mockito.verify(this.markerMessageConsumer).accept(Mockito.eq(this.marker), Mockito.contains("\"marker\":")); }