Recently, I've had a request to implement logging for all of the Controller classes in my ASP.NET project. I've used postsharp and everything is working great! But, usual question: is there any OpenSource component or any pattern? Also, I want to know more about AOP design patterns, resources and real-world application.
+1
A:
I've used Spring.NET AOP features with NHibernate to implement automatic SQL transaction commit/rollback. Depending on how those Controller classes are implemented in your ASP.NET application this might or not be a viable option. Sometimes a custom IHttpModule is sufficient.
Darin Dimitrov
2010-07-20 16:34:02
I want to have the facility if I set the the application running in debug mode (web.config), the logger logs all methods in controller with method execution duration.
Tajan
2010-07-21 09:40:03