public static void SetSubSystem(string asSubSystem, string asOptionPrefix) { sSubSystem = asSubSystem; sOptionPrefix = asOptionPrefix; bInitialized = false; log = null; }
private static void Init() { if (bInitialized) { return; } Mutex mxInit = new Mutex(false, sSubSystem + "8A556883-DA8B-4323-B795-F5BD4124E3EA"); try { mxInit.WaitOne(); if (bInitialized == false) { log = new Log(sSubSystem, sSubSystem + "F4CAB138-2162-4261-BEA5-FB9B01B63B9D", sSubSystem + "1154027A-55A6-41b5-B342-76C1F5FC65C9"); log.InitLoggerFromGlobalOptions(sOptionPrefix); bInitialized = true; } } finally { mxInit.ReleaseMutex(); mxInit.Dispose(); } }