public static void Initialize() { lock (dataLock) { if (isInitialized == true) { return; } else { isInitialized = true; } } LogAPI.InitializeLogging(AppDataManager.WebServiceLogDirectory); LogAPI.LogLevel = LogLevel.DEBUG; LogAPI.WebServiceLog.Info("Logging initialized"); // subscribe to event notifications for unhandled thread exceptions AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); }