title: How to listen output logs in ASP.NET Core 2.2
body: <p>I'm developing an API server with ASP.NET Core 2.2 and my server machine is Ubuntu 18.04.</p>
  
  <p>I have a log file for my APIs states but I feel lack about the ASP.NET(Kestrel) state informations such as routing result to my controllers.</p>
  
  <p>The ASP.NET generate logs like below.</p>
  
  <pre><code>ServerApplication&gt; info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
  ServerApplication&gt;       Request starting HTTP/1.1 GET  
                           http://localhost:57904/api  
  ServerApplication&gt; info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
  ServerApplication&gt;       Request starting HTTP/1.1 DEBUG
                           http://localhost:57904/  0
  ServerApplication&gt; info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
  ServerApplication&gt;       Request finished in 36.827ms 200 
  ServerApplication&gt; info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
  </code></pre>
  
  <p>I want to listen or catch these logs to put to my log file.</p>
  
  <p>I'd read <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.2" rel="nofollow noreferrer">this article</a> but It seems not talking about listening the logs.</p>
  
  <p>How to solve this issue?</p>