/[RomCheater]/trunk/RomCheater.Logging/LoggingConstants.cs
ViewVC logotype

Annotation of /trunk/RomCheater.Logging/LoggingConstants.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (hide annotations) (download)
Wed May 9 11:29:33 2012 UTC (9 years, 4 months ago) by william
File size: 828 byte(s)
+ add settings upgrade subscriber support (needs to be called in a static constructor for types that are always used)

1 william 20 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using System.Reflection;
6 william 34 using RomCheater.UserSettingsSupport;
7     using RomCheater.Logging.Properties;
8 william 20
9 william 34 namespace RomCheater.Logging
10 william 20 {
11 william 23 public static class LoggingConstants
12 william 20 {
13 william 34 static LoggingConstants()
14     {
15     SettingSubscriber.AddSubscriber(Settings.Default);
16     }
17 william 20 #region Application Constants
18 william 24 public const string AppName = "RomCheater";
19     public static string AppLogFile = string.Format("{0}.log", AppName);
20 william 20 public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
21     #if DEBUG
22     public const string AppBuild = "Debug";
23     #else
24     public const string AppBuild = "Release";
25     #endif
26     #endregion
27     }
28     }

  ViewVC Help
Powered by ViewVC 1.1.22