title: log controller action time duration in ASP.NET core
body: <p>For a requirement we need to log the duration for aspnet core action requests. At the end of the request the duration must be logged (stopwatch) and we also need to know which controller and which action method were used.</p>
  
  <p>What is the best place to do this? Action filter, middleware? And how?</p>