Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么';这是log4net.Config.XmlConfigurator()的用途_Log4net - Fatal编程技术网

什么';这是log4net.Config.XmlConfigurator()的用途

什么';这是log4net.Config.XmlConfigurator()的用途,log4net,Log4net,我看到有人把log4net.Config.XmlConfigurator()放在AssemblyInfo.cs中。它的具体用途是什么?摘自: // Configure log4net using the .config file [assembly: log4net.Config.XmlConfigurator(Watch=true)] // This will cause log4net to look for a configuration file // called TestApp.ex

我看到有人把log4net.Config.XmlConfigurator()放在AssemblyInfo.cs中。它的具体用途是什么?

摘自:

// Configure log4net using the .config file
[assembly: log4net.Config.XmlConfigurator(Watch=true)]
// This will cause log4net to look for a configuration file
// called TestApp.exe.config in the application base
// directory (i.e. the directory containing TestApp.exe)
// The config file will be watched for changes.