예제 #1
0
 public void SetUp()
 {
     _performanceAppender = new PerformanceAppender(_count * _nbThreads);
     BasicConfigurator.Configure(new[] { new ConsoleAppender(), }, _queueSize);
     for (int i = 0; i < _nbThreads; i++)
     {
         _enqueueMicros.Add(new double[_count]);
     }
 }
예제 #2
0
        public void SetUp()
        {
            _performanceAppender = new PerformanceAppender(_count * _nbThreads);
//            LogManager.Initialize(new[] { _performanceAppender, }, _queueSize);
            LogManager.Initialize(new[] { new ConsoleAppender(), }, _queueSize);
            for (int i = 0; i < _nbThreads; i++)
            {
                _enqueueMicros.Add(new double[_count]);
            }
        }
예제 #3
0
        public void SetUp()
        {
            _performanceAppender = new PerformanceAppender(_count * _nbThreads);

            BasicConfigurator.Configure(new ZeroLogBasicConfiguration
            {
                Appenders         = { new ConsoleAppender(), },
                LogEventQueueSize = _queueSize
            });

            for (int i = 0; i < _nbThreads; i++)
            {
                _enqueueMicros.Add(new double[_count]);
            }
        }