Question: I upgraded a Web API project from ASP.NET Core 1.x to ASP.NET Core 2.0 with very minimal code changes.

When running the WebAPI the command prompt opens up like normal.

However, every single info message is duplicated.

Is this an ASP.NET Core bug or is this an issue on my end after upgrading?

**UPDATE:**

I was doing the following in the Startup.cs Configure method:

```
    loggerFactory.AddConsole(Configuration.GetSection("Logging"));
    loggerFactory.AddDebug();

```

When I remove it there are no duplicates. Is this not needed anymore?

Answer: 
I was having the same issue: using NLog, all info was duplicated and recorded that way. For me, what solved the problem was to remove the `loggerFactory.AddNLog()` from `Configure` at `Startup.cs`. I'm using Core 2.0.
For that matter, it is possible to clear the logging providers registered by default by CreateDefaultBuilder().

```
Host.CreateDefaultBuilder(args).ConfigureLogging((hostContext, loggingBuilder) =>
{
    loggingBuilder.ClearProviders();
});

```

So logs won't be outputed twice and you don't have to configure the host yourself.