I hava a kafka Stream and I perform a filter operation. I would like to log those records that get filtered out.
streamsBuilder.stream(topicName)
.filterNot( (k,v) -> v.getExampleProperty() == null)
...
I would like to log those record with null ExampleProperty.
I would like to use something like the peek() function but with some predicate. How to do that?