一、Nuget安装log4net --> Install-Package log4net
二、在AssemblyInfo.cs文件中添加log4net.dll的参数。
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension = "config", Watch = true)]
一、Nuget安装log4net --> Install-Package log4net
二、在AssemblyInfo.cs文件中添加log4net.dll的参数。
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension = "config", Watch = true)]
内容版权声明:除非注明,否则皆为本站原创文章。