Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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
 
Share this answer
 
v2
Comments
Rakesh Androtula 29-Nov-10 0:51am    
Hi Manfred,

Thanks a lot for the information. Will check out the framework and disturb you if I am struck anywhere. :P.

Kind Regards
Rakesh

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900