Spring AOP fits for this use case. You can log before, after or at the method calling. There are plenty of tutorials out there, you can get started with Logging With AOP in Spring