Hi I am using Spring AOP for logging ,I have two following aspects @Before and @AfterReturning Unfortunately both are printing the same response here the expectation is @Before print method input and @AfterReturning print method output.
@Before(value ="execution(* com.abc.xyz.service..*(..))")
fun logBeforeAllMethods(joinPoint: JoinPoint) {
log.info("Service Request : " + Arrays.toString(joinPoint.args))
}
@AfterReturning(value="execution(* com.abc.xyz.service..*(..))")
fun logAfterAllMethods(joinPoint: JoinPoint) {
log.info("Service Response : " + Arrays.toString(joinPoint.args))
}