/[RomCheater]/trunk/RomCheater.ScratchPad/ScratchPadDocument.cs
ViewVC logotype

Diff of /trunk/RomCheater.ScratchPad/ScratchPadDocument.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2014/04/15 14:30:48	811
+++ trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2014/04/15 14:52:10	812
@@ -10,6 +10,7 @@
 using RomCheater.Core;
 using System.IO;
 using RomCheater.Logging;
+using Enterprise.Logging;
 
 namespace RomCheater.ScratchPad
 {
@@ -160,8 +161,8 @@
             {
                 this.DocumentSaved = false;
                 MessageBox.Show(string.Format("Failed to open: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                logger.Error.WriteLine("Failed to open: '{0}'", fi.FullName);
-                logger.Error.WriteLine(ex.ToString());
+                gLog.Error.WriteLine("Failed to open: '{0}'", fi.FullName);
+                gLog.Verbose.Error.WriteLine(ex.ToString());
             }
         }
         private void SaveDocument()
@@ -220,8 +221,8 @@
             {
                 this.DocumentSaved = false;
                 MessageBox.Show(string.Format("Failed to save: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                logger.Error.WriteLine("Failed to save: '{0}'", fi.FullName);
-                logger.Error.WriteLine(ex.ToString());
+                gLog.Error.WriteLine("Failed to save: '{0}'", fi.FullName);
+                gLog.Verbose.Error.WriteLine(ex.ToString());
             }
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22