/[RomCheater]/trunk/RomCheater.Logging/logger.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/logger.cs

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

--- trunk/RomCheater.Logging/logger.cs	2012/05/09 10:05:28	28
+++ trunk/RomCheater.Logging/logger.cs	2012/05/09 17:48:05	82
@@ -22,8 +22,8 @@
         INFO = 0x0001,              // 001
         DEBUG = 0x0002,             // 010
         ERROR= 0x0004,              // 100
-        DEFAULT = INFO | ERROR,
-        ALL = 0x07,
+        DEFAULT = INFO | ERROR | DEBUG,
+        ALL = DEFAULT,
     }
     public static class logger
     {
@@ -99,6 +99,7 @@
                             try
                             {
                                 lw = (LogWriter)prop.GetValue(null, null);
+                                lh = new logwriter(lw);
                                 break;
                             }
                             catch (Exception)
@@ -106,9 +107,7 @@
                                 throw;
                             }
                         }
-                    }
-                    lh = new logwriter(lw);
-                    break;
+                    }                    
                 }
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22