Logging a methods's name and parameters

前端 未结 4 1482
星月不相逢
星月不相逢 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:37

    You can use interceptors http://docs.oracle.com/javaee/6/tutorial/doc/gkeed.html to intercept calls to public methods without any code changes, it is impossible to use this technique with non-public methods though.

提交回复
热议问题