title: Logging exceptions in asp.net core / kestrel
body: <p>The docs show how to set a page for when an exception occurs: <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling</a></p>
  
  <p>But how do I record the details of the exception in a log file on my server?</p>
  
  <p>Does kestrel log exceptions and errors anywhere by default or do I have to do this manually?</p>
  
  <p>Are there any examples or documentation available?</p>