What is the best method for implementing application wide logging in MVC4 ? Is it possible to implement a global exception logging using configuration only ?
Is there any existing practice to assign some sort of custom levels to it ? (e.g.: trace, warning, error, exception etc)
What is the best method for implementing application wide logging in MVC4 ? Is
Share
Elmah is pretty popular for unhandled exception logging, but it can be a bit challenging to get working correctly in MVC.
I personally use Elfar which is “inspired” by Elmah but is more targeted at MVC.
There are various ways to incorporate regular logging into your app, lots of them in fact. Log4net, NLog, and others give you tools to do logging.