WebHost.CreateDefaultBuilder
sets up a lot of ordinary things for you to keep the same code that should be generated for each individual ASP.NET Core 2 project (as it was in ASP.NET Core 1.x).
WebHost.CreateDefaultBuilder . , , :
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
. ( ), , .
, Andrew Lock , . , .. , ASP.NET Core 2 1, , , .