Logging a methods's name and parameters

前端 未结 4 1470
星月不相逢
星月不相逢 2021-02-10 15:12

I\'ve been working with a company that, in this current project, has to implement a policy of writing lots of trace logging in code (JAVA) that has already been completed for so

4条回答
  •  误落风尘
    2021-02-10 15:20

    You should take a look at AOP. It enables you to inject code at runtime and thus add logging before/after each method.

提交回复
热议问题