007.NET5 Log4Net组件使用

NET 5 Log4Net组件使用

1. Nuget引入程序集:log4net + Microsfot.Extensions.Logging.Log4Net.AspNetCore

 

 2. 准备配置文件

 

配置LogNet配置文件的读取

配置方法一

 

配置方法二

 

3.使用LogNet记录日志

 

posted on 2021-01-25 09:43  L秦岭  阅读(554)  评论(0编辑  收藏  举报

导航