LU iPearl logging implemented, version 2.2.219.

This commit is contained in:
Milan Hanajik
2016-02-18 01:08:14 +01:00
parent 7badb8ef7b
commit a62ce451c4
7 changed files with 311 additions and 262 deletions
+6 -3
View File
@@ -21,8 +21,9 @@ namespace TBF
static ILog log;
const string log4netConfigFName = "log4netConfig.xml";
/// Program version string
public static string Version;
/// Program information
public static string Version; /// version string
public static DateTime BuildDateTime; /// date and time of program build
/// Local settings
public static LocalSettings LocalSettings;
@@ -60,8 +61,10 @@ namespace TBF
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
/// Program version string
Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly();
Version ver = thisAssembly.GetName().Version;
Version = string.Format("{0}.{1}.{2}", ver.Major, ver.Minor, ver.Build);
BuildDateTime = new System.IO.FileInfo(thisAssembly.Location).LastWriteTime;
/// Local program configuration directory including the trailing backslash
string locAppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) +