|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.IO;
-
- namespace jdis_import
- {
- public class JDISLog
- {
-
- public static void WriteToLog(string logFile, string msg)
- {
- using (StreamWriter sw = File.AppendText(logFile))
- {
- sw.WriteLine(msg);
- }
-
- }
- public static void Begin(string logFile)
- {
- using (StreamWriter sw = File.AppendText(logFile))
- {
- sw.WriteLine();
- sw.WriteLine("###########################################################################");
- sw.WriteLine(string.Format("Import Began at {0} {1}", DateTime.Now.ToShortDateString(), DateTime.Now.ToLongTimeString()));
- }
- }
- }
- }
|