title: Logging within Program.cs
body: <p>Is it possible to get an ILogger inside Program.cs Main method? I want to pass it on to a service that's created inside that method.</p>
  
  <p>I've only found this on SO <a href="https://stackoverflow.com/questions/41287648/how-do-i-write-logs-from-within-startup-cs">How do I write logs from within Startup.cs</a> , but that's logging within Startup.cs.</p>