title: Last logging parameter of Azure Function (ILogger or TraceWriter) not accepted
body: <p>After upgrading my own project from an earlier (a few months back) version of Azure Functions to current, I get the following error upon launching from VS.</p>
  
  <blockquote>
    <p>GetLoginUrl: Microsoft.Azure.WebJobs.Host: Error indexing method 'Login.GetLoginUrl'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'log' to type ILogger. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).</p>
  </blockquote>
  
  <p>Before, I used to have <code>TraceWriter log</code> as the last parameter to my methods but then I found out I should be using <code>ILogger</code> instead. Before I made the change, I was getting the same error as above.</p>
  
  <p>The <code>ILogger</code> seems to be mapped to assembly <code>Microsoft.Extensions.Logging.Abstractions</code>. Perhaps this is why it is not recognized? Which <code>ILogger</code> should be used? Here is the method signature.</p>
  
  <pre><code>[FunctionName("GetLoginUrl")]
  public static HttpResponseMessage GetLoginUrl(
      [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)]HttpRequestMessage req,
      ILogger log)
  </code></pre>
  
  <p>I did not try to deploy this to Azure.</p>
  
  <p>Unfortunately, creating a brand new Functions project does not help as there are no .CS files to look up to in order to correct this.</p>