mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Logger] Show full commandline when log started
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user