[Logger] Show full commandline when log started

This commit is contained in:
Matt Nadareski
2016-09-07 15:01:49 -07:00
parent 5b9bbaacfc
commit 1fb058ea79

View File

@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace SabreTools.Helper
{
@@ -72,6 +73,7 @@ namespace SabreTools.Helper
{
_log = new StreamWriter(File.Open(_basepath + _filename, FileMode.OpenOrCreate | FileMode.Append));
_log.WriteLine("Logging started " + DateTime.Now);
_log.WriteLine(GetCommandLine());
_log.Flush();
}
catch
@@ -244,5 +246,8 @@ namespace SabreTools.Helper
}
return true;
}
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
private static extern System.IntPtr GetCommandLine();
}
}