diff mde/scheduler/Init.d @ 26:611f7b9063c6

Changed the licensing and removed a few dead files. Changed licensing to "GPL version 2 or later" to avoid future compatibility issues. Also a unittest fix to the previous commit. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 03 Apr 2008 18:15:02 +0100
parents 2c28ee04a4ed
children b5fadd8d930b
line wrap: on
line diff
--- a/mde/scheduler/Init.d	Thu Apr 03 17:26:52 2008 +0100
+++ b/mde/scheduler/Init.d	Thu Apr 03 18:15:02 2008 +0100
@@ -2,16 +2,16 @@
 Part of mde: a Modular D game-oriented Engine
 Copyright © 2007-2008 Diggory Hardy
 
-This program is free software; you can redistribute it and/or modify it under the terms of
-the GNU General Public License, version 2, as published by the Free Software Foundation.
+This program is free software: you can redistribute it and/or modify it under the terms
+of the GNU General Public License as published by the Free Software Foundation, either
+version 2 of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 See the GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 /**************************************************************************************************
  * Initialisation setup and exit cleanup module.
@@ -62,18 +62,20 @@
     {
         // Where logging is done to is determined at compile-time, currently just via static ifs.
         Logger root = Log.getRootLogger();
-                
-        static if (true ) { // Log to the console
-            root.addAppender(new ConsoleAppender);
-        }
-        static if (true ) { // Log to files
+        
+        static if (true ) { // Log to files (first appender so root seperator messages don't show on console)
             version (SwitchAppender) {
                 root.addAppender (new SwitchingFileAppender (paths.logDir~"/log-.txt", 5));
             } else {
                 // Use 2 log files with a maximum size of 1 MB:
                 root.addAppender (new RollingFileAppender (paths.logDir~"/log-.txt", 2, 1024*1024));
+                root.info (""); // some kind of separation between runs
+                root.info ("");
             }
         }
+        static if (true ) { // Log to the console
+            root.addAppender(new ConsoleAppender);
+        }
         
         // Set the level here, but set it again once options have been loaded:
         debug root.setLevel(root.Level.Trace);