/[EmuXPortal]/trunk/EmuXPortal/Api/ConfigLoader.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/ConfigLoader.cs

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

--- trunk/EmuXPortal/Api/ConfigLoader.cs	2012/04/03 21:00:28	13
+++ trunk/EmuXPortal/Api/ConfigLoader.cs	2012/04/03 21:35:13	14
@@ -6,6 +6,7 @@
 using System.Windows.Forms;
 using System.Xml;
 using System.IO;
+using EmuXPortal.Logging;
 
 namespace EmuXPortal.Api
 {
@@ -39,6 +40,7 @@
                 bool loaded = false;
                 try
                 {
+                    logger.WriteLine("Loading Config: {0}", path);
                     using (FileStream fs = new FileStream(CONFIG_FILE_PATH, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
                     {
                         using (XmlReader reader = XmlReader.Create(fs))
@@ -49,11 +51,14 @@
                             DisplayDevice = reader.ReadElementContentAsString();
                         }
                     }
+                    logger.WriteLine("Loaded Config: {0}", path);
                     loaded = true;
                 }
                 catch (Exception ex)
                 {
+                    logger.WriteLine("\tFailed to Load Config: {0}", path);
                     Console.WriteLine(ex.ToString());
+                    logger.WriteLine("Error: {0}", ex.ToString());
                     loaded = false;
                 }
                 return loaded;

 

  ViewVC Help
Powered by ViewVC 1.1.22