springcloud-community / springcloud-comment

0 stars 0 forks source link

post/2022-03/spel-aop-log/ #12

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Use Aop + SpEl to record more detailed request logs - Spring Cloud

Spring powerful expressions (SpEL) , you can dynamically access the properties of Java objects , call the object's methods . In the request logging through Aop with SpEL can make the log information more detailed and flexible.

https://www.springcloud.io/post/2022-03/spel-aop-log/

huy8895 commented 1 year ago

I enjoyed reading this article. You did a great job of showing how SpEL and Aop can make logging more flexible and detailed. Have you encountered any challenges or limitations when using this technique?