本文介绍了是否可以在java(log4j)中记录方法调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在log4j Java中记录任何方法调用?

Is it possible to log any method call in log4j Java?

谢谢!

推荐答案

不,不是没有编辑任何一个电话 - 站点或方法本身。我认为你所追求的是面向方面编程的东西。例如,请查看。

No, not without editing either the call-sites or the method itself. I think what you're after is something towards aspect oriented programming. Have a look at AspectJ for example.

这篇关于是否可以在java(log4j)中记录方法调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 12:31
查看更多