/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

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

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/20 20:04:53	755
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2014/04/15 15:58:50	814
@@ -12,6 +12,7 @@
 using RomCheater.PluginFramework.Core;
 using RomCheater.Core;
 using RomCheater.UserSettingsSupport;
+using Enterprise.Logging;
 
 namespace RomCheater.RVAScratchPad
 {
@@ -52,18 +53,18 @@
             load_loggerflags();
             SetupDocks();
             //LoggerInstance = m_LogWindow.Logwriter;
-            LoggerInstance = new LogWriter(!no_console_redirect);
-            LoggerInstance.CreateNewLog(false);
-            logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
+            LoggerInstance = new LogWriter();
+            //LoggerInstance.CreateNewLog(false);
+            //logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
             load_plugins();
-            if (no_console_redirect)
-                LoggerInstance.RedirectConsoleOutput = false;           
+            //if (no_console_redirect)
+            //    LoggerInstance.RedirectConsoleOutput = false;           
         }
         private void load_loggerflags()
         {
-            logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
+            //logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
 #if FORCE_ALL_LOGGING_FLAGS
-            logger.SetLoggingFlags(loggerflags.ALL);
+            //logger.SetLoggingFlags(loggerflags.ALL);
 #endif
         }
         private void load_plugins() { load_plugins(false); }

 

  ViewVC Help
Powered by ViewVC 1.1.22