debug stuff
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using BattleFieldSimulator.FileSystem;
|
||||||
using BattleFieldSimulator.SimRunner;
|
using BattleFieldSimulator.SimRunner;
|
||||||
|
|
||||||
namespace BattleFieldSimulator
|
namespace BattleFieldSimulator
|
||||||
@@ -16,7 +18,12 @@ namespace BattleFieldSimulator
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
const string format = "M_dd_yyyy_hh-mm-ss-tt";
|
||||||
|
var logName = $"log_{DateTime.Now.ToString(format)}.txt";
|
||||||
|
var fout = new StreamWriter(Path.Combine(FileSystemConstants.LogDirectory, logName));
|
||||||
|
fout.WriteLine(e);
|
||||||
Console.WriteLine(e);
|
Console.WriteLine(e);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user