Exemplo n.º 1
0
        /// <summary>
        /// Initialize the LogManagement with the specified fileName
        /// </summary>
        /// <param name="fileName">The file name</param>
        public void Initialize(string fileName)
        {
            // to prevent multiply initialize
            if (this.site != null)
            {
                return;
            }

            this.site = new StackSdkTestSite(fileName);

            loggerList        = new List <Logger>();
            logMsgList        = new QueueManager();
            logDistinationMap = new Dictionary <LogType, ILogDistination>();
            logThread         = new LogThread();
        }
        /// <summary>
        /// Initialize the LogManagement with the specified fileName
        /// </summary>
        /// <param name="fileName">The file name</param>
        public void Initialize(string fileName)
        {
            // to prevent multiply initialize
            if (this.site != null)
            {
                return;
            }

            this.site = new StackSdkTestSite(fileName);

            loggerList = new List<Logger>();
            logMsgList = new QueueManager();
            logDistinationMap = new Dictionary<LogType, ILogDistination>();
            logThread = new LogThread();
        }