public void Log(GameException e) { System.IO.File.WriteAllText(fileName, System.IO.File.ReadAllText(fileName) + "\n[" + DateTime.Now.ToString() + "] " + e.why); if (e.level >= GameException.LevelCatastrophic) g.Exit(); }
public void Log(GameException e) { System.IO.File.WriteAllText(fileName, System.IO.File.ReadAllText(fileName) + "\n[" + DateTime.Now.ToString() + "] " + e.why); if (e.level >= GameException.LevelCatastrophic) { g.Exit(); } }