java - What is the best way to do logging for REST method call? -


what best way logging rest method call?

i tryed 2 ways log information of methods input passed method, output of method, if exception thrown - exception, class , method , exception line logged.

method1 : using method

method2 : using spring aop

which best way do? there other way can logging.

i here adding point on acv's suggestion since ever has suggested correct , 1. aop loose couple give more flexibility in terms of optional deployment , 2.your actual business logic , method remain neat & clean . no line appear there. 3.could use code entire application in other application too.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -