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