ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.Logging/LoggingConstants.cs
(Generate patch)

Comparing:
trunk/RomCheater/AppConsts.cs (file contents), Revision 20 by william, Wed May 9 08:41:36 2012 UTC vs.
trunk/RomCheater.Logging/LoggingConstants.cs (file contents), Revision 34 by william, Wed May 9 11:29:33 2012 UTC

--- trunk/RomCheater/AppConsts.cs	2012/05/09 08:41:36	20
+++ trunk/RomCheater.Logging/LoggingConstants.cs	2012/05/09 11:29:33	34
@@ -3,15 +3,20 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Reflection;
-using RomCheater.Logging;
+using RomCheater.UserSettingsSupport;
+using RomCheater.Logging.Properties;
 
-namespace RomCheater
+namespace RomCheater.Logging
 {
-    public static class AppConsts
+    public static class LoggingConstants
     {
+        static LoggingConstants()
+        {
+            SettingSubscriber.AddSubscriber(Settings.Default);
+        }
         #region Application Constants
-        public const string AppName = "Rom Cheater";
-        public const string AppLogFile = RomCheater.Logging.LogWriter.LOG_FILE;
+        public const string AppName = "RomCheater";
+        public static string AppLogFile = string.Format("{0}.log", AppName);
         public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
 #if DEBUG
         public const string AppBuild = "Debug";
@@ -19,13 +24,5 @@ namespace RomCheater
         public const string AppBuild = "Release";
 #endif
         #endregion
-
-        #region Logging Constants
-        public static void LogApplicationStatup()
-        {;
-            logger.WriteLine("{0} created on {1}", AppLogFile, DateTime.Now.ToString());
-            logger.WriteLine("{0} version: {1} {2} build", AppName, AppVersion, AppBuild);
-        }
-        #endregion
     }
 }