[Updated] Logging methods with AspectJ in a Spring application

Method logging is a useful technique for collecting runtime data, such as execution time, input parameters, and return values, about a method. While we can do this manually, it becomes tedious at scale. It makes sense to be lazy here and automate it. In this post, we’ll build a consistent and reusable method logging approach using aspects and Spring AOP. Note The code in this post is written…