Beispiel #1
0
 static void setupLog4Net()
 {
     var fs = new FileSystem();
     var configFolder = fs.SearchUpForDirectory(System.Environment.CurrentDirectory, "config") ?? ".";
     var log4NetFilePath = configFolder.AppendPath("log4net.config");
     Console.WriteLine("Using '{0}' for log4net.config", log4NetFilePath);
     log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(log4NetFilePath));
 }