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); }
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); }