Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Log4NetSettings"/> class.
 /// </summary>
 public Log4NetSettings()
 {
     GlobalContextProperties.Add("appRoot", Directory.GetCurrentDirectory());
     ConfigFilePath     = "log4net.config";
     RootRepositoryName = GetDefaultRepositoryName();
 }
Ejemplo n.º 2
0
 static GlobalContext()
 {
     s_properties = new GlobalContextProperties();
     Properties["log4net:HostName"] = SystemInfo.HostName;
 }