示例#1
0
        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
        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);
        }