BsonLogParam implements LogParam { @Override public void append(StringBuilder builder, Set<String> maskedFields, int maxParamLength) { String value = logValue(); builder.append(value); } BsonLogParam(Bson bson, CodecRegistry registry); @Override void append(StringBuilder builder, Set<String> maskedFields, int maxParamLength);  }
@Test void append() { var param = new BsonLogParam(Filters.eq("field", "value"), MongoClientSettings.getDefaultCodecRegistry()); var builder = new StringBuilder(); param.append(builder, Set.of(), 1000); assertThat(builder.toString()).isEqualTo("{\"field\": \"value\"}"); }