mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
parent
dd2e7025d0
commit
5ab604df8d
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user