From 23a86dc534b0c4afae15a2fc12f8f6c740b92c87 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Mon, 2 Nov 2020 10:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AENLog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/StaffManagement/Program.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/StaffManagement/Program.cs b/src/StaffManagement/Program.cs index 17868fb..515af6c 100644 --- a/src/StaffManagement/Program.cs +++ b/src/StaffManagement/Program.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; +using NLog.Web; namespace StaffManagement { @@ -19,6 +14,7 @@ namespace StaffManagement Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); - }); + }) + .UseNLog(); } }