        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .UseSerilog((hostingContext, loggerConfiguration) => loggerConfiguration
                    .ReadFrom.Configuration(hostingContext.Configuration)
                    .Enrich.FromLogContext()
                    .WriteTo.Console()
                    .WriteTo.File(@"D:\home\LogFiles\http\RawLogs\log-{Date}.txt",
                                    fileSizeLimitBytes: 1_000_000,
                                    rollOnFileSizeLimit: true,
                                    shared: true,