public static void 追加日志(string txt) { // Txthelper tx = new Txthelper(); Txthelper.WriteLine(Directory.GetCurrentDirectory() + "\\Log\\project" + DateTime.Now.ToString("yyyyMM", CultureInfo.InvariantCulture) + ".log", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture) + " " + txt); }
public static void 追加日志(string fileName, string txt) { // Txthelper tx = new Txthelper(); Txthelper.WriteLine(fileName, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture) + " " + txt); }