我看到有人把log4net.Config.XmlConfigurator()放进了AssemblyInfo.cs中。它到底是做什么的?
发布于 2011-11-01 00:48:56
摘自:http://logging.apache.org/log4net/release/manual/configuration.html
// 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.https://stackoverflow.com/questions/7954443
复制相似问题