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

2:
Application Warnings
Application Exceptions

3:
Application Exceptions

4:
None

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

kindly provide me some pointers

Thanks in advance
Coordinator
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.