public static void Main(string[] args) { var webHost = ModuleWebHost.CreateModuleBuilder(args) .UseStartup <Startup>() .Build(); webHost.Run(); }
public static void Main(string[] args) { var webHost = ModuleWebHost.CreateModuleBuilder(args) .ConfigureLogging((hostingContext, logging) => { logging.SetMinimumLevel(LogLevel.Information); logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); logging.AddConsole(); logging.AddDebug(); }) .UseStartup <Startup>() .Build(); webHost.Run(); }