- using System;
- using System.IO;
- namespace UAS_LabelMachine.PublicMethod
- {
- class LogManager
- {
- public static void DoLog(string Message)
- {
- StreamWriter sw = File.AppendText("Log/" + DateTime.Now.ToString("yyyy-MM-dd") + ".txt");
- sw.WriteLine("\n" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " " + Message + "\n");
- sw.Close();
- }
- }
- }
|