修复 #86  bug
This commit is contained in:
anjoy8 2020-05-25 18:55:53 +08:00
parent dd2e7025d0
commit 5ab604df8d

View File

@ -72,6 +72,7 @@ namespace Blog.Core
//该方法需要引入Microsoft.Extensions.Logging名称空间
builder.AddFilter("System", LogLevel.Error); //过滤掉系统默认的一些日志
builder.AddFilter("Microsoft", LogLevel.Error);//过滤掉系统默认的一些日志
builder.AddFilter("Blog.Core.AuthHelper.ApiResponseHandler", LogLevel.Error);//过滤掉系统默认的一些日志
//添加Log4Net
var path = Path.Combine(Directory.GetCurrentDirectory(), "Log4net.config");