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

# Line 3 | Line 3 | using System.Collections.Generic;
3   using System.Linq;
4   using System.Text;
5   using System.Reflection;
6 < using RomCheater.Logging;
6 > using RomCheater.UserSettingsSupport;
7 > using RomCheater.Logging.Properties;
8  
9 < namespace RomCheater
9 > namespace RomCheater.Logging
10   {
11 <    public static class AppConsts
11 >    public static class LoggingConstants
12      {
13 +        static LoggingConstants()
14 +        {
15 +            SettingSubscriber.AddSubscriber(Settings.Default);
16 +        }
17          #region Application Constants
18 <        public const string AppName = "Rom Cheater";
19 <        public const string AppLogFile = RomCheater.Logging.LogWriter.LOG_FILE;
18 >        public const string AppName = "RomCheater";
19 >        public static string AppLogFile = string.Format("{0}.log", AppName);
20          public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
21   #if DEBUG
22          public const string AppBuild = "Debug";
# Line 19 | Line 24 | namespace RomCheater
24          public const string AppBuild = "Release";
25   #endif
26          #endregion
22
23        #region Logging Constants
24        public static void LogApplicationStatup()
25        {;
26            logger.WriteLine("{0} created on {1}", AppLogFile, DateTime.Now.ToString());
27            logger.WriteLine("{0} version: {1} {2} build", AppName, AppVersion, AppBuild);
28        }
29        #endregion
27      }
28   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines