From 2a71bd7ed7597a617a8a318697d40faae627d4d6 Mon Sep 17 00:00:00 2001 From: kimw <1@kimwong.me> Date: Mon, 14 Sep 2015 14:44:14 +0800 Subject: [PATCH] fixed: rename LogFile -> LogFilePath, for more understandable --- shadowsocks-csharp/Controller/Logging.cs | 6 +++--- shadowsocks-csharp/View/MenuViewController.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/shadowsocks-csharp/Controller/Logging.cs b/shadowsocks-csharp/Controller/Logging.cs index d77a3fb..2ef247a 100755 --- a/shadowsocks-csharp/Controller/Logging.cs +++ b/shadowsocks-csharp/Controller/Logging.cs @@ -9,15 +9,15 @@ namespace Shadowsocks.Controller { public class Logging { - public static string LogFile; + public static string LogFilePath; public static bool OpenLogFile() { try { string temppath = Utils.GetTempPath(); - LogFile = Path.Combine(temppath, "shadowsocks.log"); - FileStream fs = new FileStream(LogFile, FileMode.Append); + LogFilePath = Path.Combine(temppath, "shadowsocks.log"); + FileStream fs = new FileStream(LogFilePath, FileMode.Append); StreamWriterWithTimestamp sw = new StreamWriterWithTimestamp(fs); sw.AutoFlush = true; Console.SetOut(sw); diff --git a/shadowsocks-csharp/View/MenuViewController.cs b/shadowsocks-csharp/View/MenuViewController.cs index bae81e7..62f0a88 100755 --- a/shadowsocks-csharp/View/MenuViewController.cs +++ b/shadowsocks-csharp/View/MenuViewController.cs @@ -324,7 +324,7 @@ namespace Shadowsocks.View { if (logForms.Count == 0) { - LogForm f = new LogForm(Logging.LogFile); + LogForm f = new LogForm(Logging.LogFilePath); f.Show(); f.FormClosed += logForm_FormClosed; @@ -440,7 +440,7 @@ namespace Shadowsocks.View private void ShowLogItem_Click(object sender, EventArgs e) { - LogForm f = new LogForm(Logging.LogFile); + LogForm f = new LogForm(Logging.LogFilePath); f.Show(); f.FormClosed += logForm_FormClosed;