如何在我的应用程序中调用常用功能 [英] How Do I Call A Common Function Through Out My Application

查看:82
本文介绍了如何在我的应用程序中调用常用功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个记录审计跟踪的场景,我在使用常用函数为我们的应用程序中发生的每个事件编写审计日志。在我的应用程序中有超过300个事件。如果我把这个函数放到每个事件中它将是应用程序的负担所以请帮助如何以正确的方式调用该函数。

i met a scenario to log audit trail ,where am using a common function to write audit log for each event happening in our application.in my application having more than 300 events.if i put this function to each event it will be a burden of application So please help how to call that function in proper way.

推荐答案

如果你的意思是你有300个事件,你需要添加一个调用记录每个事件的日志方法:然后没有默认方法将其添加到代码中,而无需手动将方法调用添加到每个事件处理程序。
If you mean that you have 300 events, and you need to add a call to a log method to record each of them: then there is no "default" way to add that to your code without manually adding the method call to each event handler.


这篇关于如何在我的应用程序中调用常用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆