mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Logger] Produce consistent logs
This commit is contained in:
@@ -85,7 +85,7 @@ namespace SabreTools.Helper
|
||||
_log = new StreamWriter(File.Open(_basepath + _filename, FileMode.OpenOrCreate | FileMode.Append, FileAccess.Write));
|
||||
_log.AutoFlush = true;
|
||||
|
||||
_log.WriteLine("Logging started " + DateTime.Now);
|
||||
_log.WriteLine("Logging started " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
||||
_log.WriteLine(Environment.CommandLine);
|
||||
}
|
||||
catch
|
||||
@@ -124,7 +124,7 @@ namespace SabreTools.Helper
|
||||
|
||||
try
|
||||
{
|
||||
_log.WriteLine("Logging ended " + DateTime.Now);
|
||||
_log.WriteLine("Logging ended " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
||||
_log.WriteLine("Total runtime: " + total);
|
||||
Console.WriteLine("Total runtime: " + total);
|
||||
_log.Close();
|
||||
|
||||
Reference in New Issue
Block a user