diff mde/setup/Init.d @ 153:2934fcacbb97

Fixed a bug preventing log messages from being displayed. Added a Help->About menu (logs copyright info).
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 10 Apr 2009 18:09:55 +0200
parents e785e98d3b78
children e45226d3deae
line wrap: on
line diff
--- a/mde/setup/Init.d	Fri Apr 10 15:19:46 2009 +0200
+++ b/mde/setup/Init.d	Fri Apr 10 18:09:55 2009 +0200
@@ -170,7 +170,6 @@
             }
             if (!(logOutput() & 1))
                 root.add(new AppendConsole);
-            logger.info ("Starting mde [no version] on " ~ TimeStamp.toString(WallClock.now));
         } catch (Exception e) {
             // Presumably it was only adding a file appender which failed; set up a new console
             // logger and if that fails let the exception kill the program.
@@ -178,7 +177,10 @@
             root.add (new AppendConsole);
             logger.error ("Exception while setting up the logger; logging to the console instead.");
         }
-        
+	
+	// Done enough init to know where and when to log messages now
+	logger.info ("Starting mde [no version] on " ~ TimeStamp.toString(WallClock.now));
+	
         // a debugging option:
         imde.run = imde.run && !exitImmediately();
         debug logger.trace ("Init: applied pre-init options");
@@ -411,7 +413,7 @@
 		Log.root.level (Level.Trace);
 		logger.trace ("Setting logging level {}", logLevel());
 	    }
-            Log.root.level (logOutput() == 0 ? Level.None : cast(Level) logLevel(), true);
+            Log.root.level (logOutput() == 3 ? Level.None : cast(Level) logLevel(), true);
         }
         
         void printUsage (char[] progName) {