public static WindowsImpersonationContext targetRepositoryImpersonationContext = null;//SQLsecure 3.1 (Tushar)--Supporting windows auth for repository connection #region Helpers private static void startup() { // Initialize diagnostic logging. LogX.Initialize(); logX = new LogX("Idera.SQLsecure.UI.Console.Program"); logX.loggerX.Info("Console started at ", DateTime.Now.ToString()); }
private static void startup(Utility.ProgramArgs programArgs, string args) { // Initialize diagnostic logging. if (programArgs.Valid) { LogX.Initialize(programArgs.TargetInstance.Replace(@"\", "$")); } else { LogX.Initialize(); } logX = new LogX("Idera.SQLsecure.Collector.Program"); // Log to event log that data loader is starting. AppLog.WriteAppEventInfo(SQLsecureEvent.DlInfoStartMsg, SQLsecureCat.DlStartCat, DateTime.Now.ToString(), args); logX.loggerX.Info("Collector started with parameters: ", args); }