I have a small application written in ASP.NET MVC 5. Some of my users are getting errors when an ajax request take place. I am trying to see if there is a way to trace there errors that already happened?

Will the frame work automatically log the application error somewhere where I can view? Or, do I have to add a log manually when needed?

How do I write logs to ASP.NET MVC from the controller?