/[RomCheater]/trunk/RomCheater/RomCheaterConfigDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

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

--- trunk/RomCheater/RomCheaterConfigDialog.cs	2012/06/03 20:57:44	270
+++ trunk/RomCheater/RomCheaterConfigDialog.cs	2013/06/17 10:29:30	692
@@ -1,4 +1,17 @@
-#define DISABLE_VERBOSE_DEBUG_MESSAGES_FOR_SPEED_BOOST //when defined, will not log verbose debug messages (without changeing logging flags)
+#region Logging Defines
+// include this any class or method that required logging, and comment-out what is not needed
+
+#region Enabled logging levels
+#define LOGGING_ENABLE_INFO
+#define LOGGING_ENABLE_WARN
+#define LOGGING_ENABLE_DEBUG
+#define LOGGING_ENABLE_VERBOSEDEBUG
+#define LOGGING_ENABLE_ERROR
+#define LOGGING_ENABLE_VERBOSEERROR
+#define LOGGING_ENABLE_PROFILER
+#endregion
+#endregion
+//#define DISABLE_VERBOSE_DEBUG_MESSAGES_FOR_SPEED_BOOST //when defined, will not log verbose debug messages (without changeing logging flags)
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -9,7 +22,8 @@
 using System.Windows.Forms;
 using RomCheater.Logging;
 using RomCheater.PluginFramework.Core;
-using RomCheater.PluginFramework.Interfaces;
+using RomCheater.Core;
+
 
 namespace RomCheater
 {
@@ -108,14 +122,16 @@
                 logger.SetLoggingFlags(pflags);
             }
 #endif
-            foreach (loggerflags flags in loggerflags.GetValues())
+            var logger_flags = loggerflags.GetValues();
+
+            foreach (loggerflags flags in logger_flags)
             {
                 if (flags == loggerflags.ALL ||
                     flags == loggerflags.NONE ||
                     flags == loggerflags.DEFAULT)
                     continue;
 
-                string name = flags.ToString();
+                string name = flags.Name;
                 ushort value = (ushort)flags;
 
                 CheckBox chkloggerflags = new CheckBox();

 

  ViewVC Help
Powered by ViewVC 1.1.22