Parent Directory
|
Revision Log
|
Patch
--- trunk/RomCheater.Logging/LogWriter.cs 2012/05/09 08:16:18 18 +++ trunk/RomCheater.Logging/LogWriter.cs 2012/05/09 08:41:36 20 @@ -13,7 +13,7 @@ { public partial class LogWriter : UserControl { - private const string LOG_FILE = "RomCheater.log"; + public const string LOG_FILE = "RomCheater.log"; private static string LOG_PATH = string.Format(@"{0}\{1}", Application.StartupPath, LOG_FILE); private delegate string OnGetLogText(); @@ -144,7 +144,8 @@ FileStream fs = new FileStream(LOG_PATH, FileMode.Append, FileAccess.Write, FileShare.ReadWrite); StreamWriter writer = new StreamWriter(fs); writer.AutoFlush = true; - writer.Write(value); + if (value == Log.NewLine) { writer.Write(System.Environment.NewLine); } + else { writer.Write(value); } writer.Close(); sw.Write(value); }
ViewVC Help | |
Powered by ViewVC 1.1.22 |