move log to temp path

This commit is contained in:
clowwindy
2014-11-09 11:56:30 +08:00
parent 1f92b48eaf
commit 492869fd5c
5 changed files with 55 additions and 16 deletions
+1 -13
View File
@@ -47,19 +47,7 @@ namespace Shadowsocks
}
LoadLibrary(dllPath);
try
{
FileStream fs = new FileStream("shadowsocks.log", FileMode.Append);
TextWriter tmp = Console.Out;
StreamWriter sw = new StreamWriter(fs);
sw.AutoFlush = true;
Console.SetOut(sw);
Console.SetError(sw);
}
catch (IOException e)
{
Console.WriteLine(e.ToString());
}
Logging.OpenLogFile();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ShadowsocksController controller = new ShadowsocksController();