123456789101112131415161718192021222324252627282930 |
- using Microsoft.AspNetCore.Hosting;
- using Microsoft.Extensions.Hosting;
- using Microsoft.Extensions.Logging;
- namespace ProductionLineMonitor.Web
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- CreateHostBuilder(args).Build().Run();
- }
- public static IHostBuilder CreateHostBuilder(string[] args) =>
- Host.CreateDefaultBuilder(args)
- .ConfigureLogging(log =>
- {
- log.AddFilter("System", LogLevel.Warning);
- log.AddFilter("Microsoft", LogLevel.Warning);
- log.AddLog4Net();
- })
- .ConfigureWebHostDefaults(webBuilder =>
- {
- webBuilder
- .UseIISIntegration()
- .UseStartup<Startup>()
- .UseUrls();
- });
- }
- }
|