How to get validation error logged?

Hi! We are using akka-http and I recently had to rewrite one of our validations from simple if-else to this method - validate • Akka HTTP . It totally works, but I don’t understand how can I add a log message (by calling slf4j for example) in case if we had an invalid input. Is there a way to add some sort of “onFail” lambda or something like this?
I’d also like to increase specific metric (kamon) when this happens, but if only log is possible, that is also fine.

Ah, I used this one - handleRejections • Akka HTTP . Seems nice