记录启动和应用程序功能的结尾. [英] Logging the start & end of the function of an application.

查看:53
本文介绍了记录启动和应用程序功能的结尾.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想开发一些DLL,可以将其添加到任何.NET应用程序中,并在app.config/web.config中进行配置,然后在应用程序运行时反过来,它将利用DLL的帮助并记录所有已执行的方法. br/>
任何人都可以帮助我解决实现这种类型的日志记录工具所需遵循的步骤.通过互联网搜索后,我发现有一个名为POSTSHARP的工具可以完成相同的工作.但是我不想花钱.

谢谢
Rakesh

Hi,

I would like to develop some DLL which can be added to any .NET application and configure something in app.config/web.config and inturn when the application runs, it will take the help of the DLL and log all the executed methods.

Can anyone help me out with the process of steps which need to be followed to achieve this type of logging tool. After searching over internet I came to know that there is a tool called POSTSHARP which does the same work. But I do no want to spend on it.

Thanks
Rakesh

推荐答案

你好Arakesh!

您正在寻找面向方面的编程. Spring.NET框架是开源的(不会花你一分钱(一分钱)),并且可以
用于AOP(面向方面​​的编程).据我所知,配置非常简单,甚至可以使用模式
宣布切入点.

我建议在此处阅读以下内容的链接: http://static.springsource.org /spring/docs/2.0.x/reference/aop.html

这可能是适合您的方法.如果您有任何疑问,请与我联系.

干杯

曼弗雷德(Manfred)
Hello Arakesh!

You''re looking for Aspect Oriented Programming. The Spring.NET framework is open source (won''t cost you a cent (or a penny)) and can
be used for AOP (aspect oriented programming). As far as I know the configuration is pretty straight forward and even patterns can be used
to declare the point cuts.

Here a link I suggest to read up on this: http://static.springsource.org/spring/docs/2.0.x/reference/aop.html

This might be the way to go for you. If you have any doubts check back with me.

Cheers

Manfred


这篇关于记录启动和应用程序功能的结尾.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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