コード例 #1
0
ファイル: BuildList.cs プロジェクト: radiaku/csharptest-net
        public void SetXmlLogFile(string relativeTo, string path, LoggerVerbosity logLevel)
        {
            if (!Path.IsPathRooted(path))
            {
                path = Path.Combine(relativeTo, path);
            }
            Directory.CreateDirectory(Path.GetDirectoryName(path));
            path = Path.GetFullPath(path);

            XmlLogger xlog = new XmlLogger();

            xlog.Verbosity  = logLevel;
            xlog.Parameters = String.Format("logfile={0}", path);
            _engine.RegisterLogger(xlog);
        }
コード例 #2
0
ファイル: BuildList.cs プロジェクト: hivie7510/csharptest-net
		public void SetXmlLogFile(string relativeTo, string path, LoggerVerbosity logLevel)
		{
			if (!Path.IsPathRooted(path))
				path = Path.Combine(relativeTo, path);
			Directory.CreateDirectory(Path.GetDirectoryName(path));
			path = Path.GetFullPath(path);

			XmlLogger xlog = new XmlLogger();
			xlog.Verbosity = logLevel;
			xlog.Parameters = String.Format("logfile={0}", path);
			_engine.RegisterLogger(xlog);
		}