A good logging library is an important addition to our projects: we can use it for testing, and debugging purposes; once a project enters the production stage, it will help us to detect, and troubleshoot anomalous situations. Let's review the steps one has to follow to successfully add logging support to our ASP.Net MVC project using log4net.
In this post we will see how to add Web API support to an existing MVC project. Sometimes we have a project that started as simple ASP.NET MVC site, maybe even as one single page project, with no more functionality that display some simple information in the screen. As the time goes by new needs arise, new features are requested, and it becomes convenient to develop a Rest API that will be used by the client to query the server for more information.