using WCS.Core; namespace ServiceCenter { public class LogHub { /// /// 发布一条日志记录 /// /// 路径 /// 文件名 /// 内容 public static void Publish(string path, string title, string con) { if (!Directory.Exists(path)) Directory.CreateDirectory(path); File.AppendAllText(Path.Combine(path, title), con); } } }