Integrate DebugListener with Logger

This commit is contained in:
JustArchi
2016-08-31 13:56:09 +02:00
parent 37f5f82cf8
commit bed87c4c80
5 changed files with 5 additions and 26 deletions

View File

@@ -126,9 +126,10 @@ namespace ArchiSteamFarm {
Directory.Delete(SharedInfo.DebugDirectory, true);
Thread.Sleep(1000); // Dirty workaround giving Windows some time to sync
}
Directory.CreateDirectory(SharedInfo.DebugDirectory);
SteamKit2.DebugLog.AddListener(new Debugging.DebugListener(Path.Combine(SharedInfo.DebugDirectory, "debug.txt")));
SteamKit2.DebugLog.AddListener(new Debugging.DebugListener());
SteamKit2.DebugLog.Enabled = true;
}