When creating the Logbook object in our configuration, we can define a set of Conditions to exclude from logging. This allows us to give regex patterns that can be used to block logging on requests to specific urls.
Is there a way to also exclude responses by the specific urls we are sending them back to in a similar fashion?
https://github.com/zalando/logbook
Specifically I've been looking into their Responsefilter class and have managed to filter/mask the body of all outgoing responses but I can't seem to figure out how to do it for only certain calls/urls.
What you need is to implement your own org.zalando.logbook.Strategy.