title: No service for type 'Microsoft.Extensions.Logging.ILogger' has been registered
body: <p>Created a blank ASP.NET Core 2.0 application.
  In Startup.cs, would like to log incoming requests. So in configure method, I am using Microsoft.Extensions.Logging.ILogger</p>
  
  <pre><code>  public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger logger)
    {    
        app.Use(next =&gt;
          {
              return async context =&gt;
              {
                  logger.LogInformation("Incoming request");
                  await next(context);
                  logger.LogInformation("Outgoing response");
              };
          });
  </code></pre>
  
  <p>However, when I build the project, its complaining </p>
  
  <pre><code> An error occurred while starting the application.
   InvalidOperationException: No service for type 'Microsoft.Extensions.Logging.ILogger' has been registered.
  </code></pre>
  
  <p>Why and how should I register this service? Had it been my interface, it would have still made sense to do </p>
  
  <pre><code>services.AddScope
  </code></pre>
  
  <p>in ConfigureServices</p>