7 |
|
|
8 |
namespace RomCheater |
namespace RomCheater |
9 |
{ |
{ |
10 |
public static class AppConsts |
public static class LoggingConstants |
11 |
{ |
{ |
12 |
#region Application Constants |
#region Application Constants |
13 |
public const string AppName = "Rom Cheater"; |
public const string AppName = "RomCheater"; |
14 |
public const string AppLogFile = RomCheater.Logging.LogWriter.LOG_FILE; |
public static string AppLogFile = string.Format("{0}.log", AppName); |
15 |
public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
public static string AppVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
16 |
#if DEBUG |
#if DEBUG |
17 |
public const string AppBuild = "Debug"; |
public const string AppBuild = "Debug"; |
19 |
public const string AppBuild = "Release"; |
public const string AppBuild = "Release"; |
20 |
#endif |
#endif |
21 |
#endregion |
#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 |
|
22 |
} |
} |
23 |
} |
} |