Esempio n. 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]);
     }
 }
Esempio n. 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]);
            }
        }
Esempio n. 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]);
            }
        }