public DBModuleUnitTest() { Environment.SetEnvironmentVariable("TNS_ADMIN", @"J:\Other_project\MyUtils\Deps\ODAC11\", EnvironmentVariableTarget.Process); Environment.SetEnvironmentVariable("NLS_LANG", "AMERICAN_AMERICA.CL8MSWIN1251", EnvironmentVariableTarget.Process); Environment.SetEnvironmentVariable("Path", @"J:\Other_project\MyUtils\Deps\ODAC11\;" + Environment.GetEnvironmentVariable("Path"), EnvironmentVariableTarget.Process); _LogMgr = new Core.LogModule.LogMgr(@"J:\Other_project\MyUtils\Deps\NLog\NLog.config"); _Logger = _LogMgr.GetLogger("DBModuleUnitTest"); _Logger.Info("Start OracleModuleTest."); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Core.SDK.Log.ILogMgr logMgr = new Core.LogModule.LogMgr(); Core.SDK.Log.ILogger logger = logMgr.GetLogger("Main"); logger.Debug("Start application"); logger.Debug("Test exception", new NotSupportedException("Test exception")); Application.Run(new Form1(logMgr)); logger.Debug("Finish application"); }
public EventAgregatorUnitTest() { _LogMgr = new Core.LogModule.LogMgr(@"J:\Other_project\MyUtils\Deps\NLog\NLog.config"); _Logger = _LogMgr.GetLogger("EventAgregatorUnitTest"); _Logger.Info("Start EventAgregatorUnitTest."); }