Exemplo n.º 1
0
            protected override void OnClose()
            {
                base.OnClose();

                onLogEvent = null;
                __cLogs    = null;
            }
Exemplo n.º 2
0
		internal LogService() {
			__cLogs = new LimitedBoundList<LogData>(MAX_LOGDATA_COUNT);

			__cTimer = new Timer();
			__cTimer.Elapsed += Timer_onElapsed;
			__cTimer.AutoReset = false;
			__cTimer.Interval = 500;

			Hierarchy cRepository = LogManager.GetRepository() as Hierarchy;
			cRepository.ConfigurationChanged += Repository_ConfigurationChanged;

			CreateLogger();  //建立MemoryLogger
		}
Exemplo n.º 3
0
        internal LogService()
        {
            __cLogs = new LimitedBoundList <LogData>(MAX_LOGDATA_COUNT);

            __cTimer           = new Timer();
            __cTimer.Elapsed  += Timer_onElapsed;
            __cTimer.AutoReset = false;
            __cTimer.Interval  = 500;

            Hierarchy cRepository = LogManager.GetRepository() as Hierarchy;

            cRepository.ConfigurationChanged += Repository_ConfigurationChanged;

            CreateLogger();              //建立MemoryLogger
        }
Exemplo n.º 4
0
 internal LimitMemoryAppender(LimitedBoundList <LogData> logs)
 {
     __cLogs = logs;
     __cLogs.SetReduce(MAX_LOGDATA_COUNT, 16);
 }
Exemplo n.º 5
0
			protected override void OnClose() {
				base.OnClose();

				onLogEvent = null;
				__cLogs = null;
			}
Exemplo n.º 6
0
			internal LimitMemoryAppender(LimitedBoundList<LogData> logs) {
				__cLogs = logs;
				__cLogs.SetReduce(MAX_LOGDATA_COUNT, 16);
			}