Replacement for JDIS Importer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
831 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.IO;
  6. namespace jdis_import
  7. {
  8. public class JDISLog
  9. {
  10. public static void WriteToLog(string logFile, string msg)
  11. {
  12. using (StreamWriter sw = File.AppendText(logFile))
  13. {
  14. sw.WriteLine(msg);
  15. }
  16. }
  17. public static void Begin(string logFile)
  18. {
  19. using (StreamWriter sw = File.AppendText(logFile))
  20. {
  21. sw.WriteLine();
  22. sw.WriteLine("###########################################################################");
  23. sw.WriteLine(string.Format("Import Began at {0} {1}", DateTime.Now.ToShortDateString(), DateTime.Now.ToLongTimeString()));
  24. }
  25. }
  26. }
  27. }