コード例 #1
0
		public static void Save(LoggerConfig loggerConig, string xmlFilePath = null) {
			if (xmlFilePath == null) {
				xmlFilePath = c_xmlFilePath;
			}
			var doc = new XmlDocument();
			using (var w = new XmlTextWriter(xmlFilePath, Encoding.UTF8)) {
				w.Formatting = Formatting.Indented;
				var ns = new XmlSerializerNamespaces();
				ns.Add("", "");
				loggerConig.Serialize(ns).WriteTo(w);
			}
		}