配置NLog

This commit is contained in:
falcon 2020-11-02 10:53:51 +08:00
parent 7e738b65a9
commit 23a86dc534

View File

@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging; using NLog.Web;
namespace StaffManagement namespace StaffManagement
{ {
@ -19,6 +14,7 @@ namespace StaffManagement
Host.CreateDefaultBuilder(args) Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { .ConfigureWebHostDefaults(webBuilder => {
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
}); })
.UseNLog();
} }
} }