Logging in Asp.net MVC application using log4net

Aug 27, 2013 at 7:02 AM
Hi All,
Mine is a Asp.net MVC 4 application. I need to implement the following;
As per log level set in web.config file (eg. 1/2/3/4)
i have to log;
1 :
Methods start
Methods end
Application Warning
Application Exception

Application Warnings
Application Exceptions

Application Exceptions


Further i need to achieve this using global filter(s).

kindly provide me some pointers

Thanks in advance
Aug 27, 2013 at 1:25 PM
Make your own implementation of PopFourms.Configuration.IErrorLog, and use your own Ninject module to swap it in place of the ErrorLog class.