Ejemplo n.º 1
0
        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);
        }