This commit is contained in:
Zoryn Aaron 2016-03-28 22:13:59 -04:00
commit 91c156678c
1 changed files with 7 additions and 0 deletions

View File

@ -231,6 +231,13 @@ namespace StardewModdingAPI
// ReSharper disable once InconsistentlySynchronizedField
_logQueue = new ConcurrentQueue<LogInfo>();
Console.WriteLine(Constants.LogPath);
// If the ErrorLogs dir doesn't exist StreamWriter will throw an exception.
if (!Directory.Exists(Constants.LogDir))
{
Directory.CreateDirectory(Constants.LogDir);
}
_stream = new StreamWriter(Constants.LogPath, false);
Console.WriteLine("Created log instance");
}