开发者

AspectJ, Can it be used for large scale loggin

I am adding logging into existing so开发者_高级运维urce code (large source code) to give a detailed logging, we decided the backend for logging (using face book scribe, and tested ). I am thinking of using Aspect oriented ways to add logging calls into all the functions (to start with)

Is this a good approach to use AspectJ to handle log collection, will it have any impact on the performance of the system.

Mani


Performance overhead added by AspectJ itself will be negligible (assuming you will use build-time weaving). Obviously, the logging will have its own performance impact that will depend on how wide (number of join points) and deep (information logged) is your logging.

In other words, performance difference between logging added through AspectJ and equivalent manually implemented code will be negligible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜