/[RomCheater]/trunk/RomCheater/AppConsts.cs
ViewVC logotype

Contents of /trunk/RomCheater/AppConsts.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations) (download)
Wed May 9 08:41:36 2012 UTC (8 years, 6 months ago) by william
File size: 959 byte(s)
+ add support to log startup message

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Reflection;
6 using RomCheater.Logging;
7
8 namespace RomCheater
9 {
10 public static class AppConsts
11 {
12 #region Application Constants
13 public const string AppName = "Rom Cheater";
14 public const string AppLogFile = RomCheater.Logging.LogWriter.LOG_FILE;
15 public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
16 #if DEBUG
17 public const string AppBuild = "Debug";
18 #else
19 public const string AppBuild = "Release";
20 #endif
21 #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
30 }
31 }

  ViewVC Help
Powered by ViewVC 1.1.22