title: What does an MVC baseController with logging look like?
body: <p>I would like to set up a base controller for my MVC3 application. Something that my other controllers would inherit from. What I want to do is implement logging. I saw this following example:</p>
  
  <pre><code>public class baseController : Controller
  {
  
       protected override void OnException(ExceptionContext filterContext)
       {
           filterContext.ExceptionHandled = true;
           this.View("Error").ExecuteResult(this.ControllerContext);
       }
  
  }
  </code></pre>
  
  <p>But I am not sure what to log and how to log it. Can someone give me some advice on what the error handling in a base controller looks like. I hope someone can help. thank you. </p>