Esempio n. 1
0
 public void SetUpFixture()
 {
     _testAppender = new TestAppender(true);
     BasicConfigurator.Configure(new List <IAppender> {
         _testAppender
     }, 10);
 }
Esempio n. 2
0
 public void SetUpFixture()
 {
     _testAppender = new TestAppender(true);
     BasicConfigurator.Configure(new List <IAppender> {
         _testAppender
     }, new ZeroLogInitializationConfig {
         LogEventQueueSize = 10
     });
 }
Esempio n. 3
0
        public void SetUp()
        {
            _testAppender = new TestAppender(false);

            BasicConfigurator.Configure(new ZeroLogBasicConfiguration
            {
                Appenders          = { _testAppender },
                LogEventQueueSize  = 16384,
                LogEventBufferSize = 512,
                Level = Level.Finest,
                LogEventPoolExhaustionStrategy = LogEventPoolExhaustionStrategy.WaitForLogEvent
            });
        }
Esempio n. 4
0
        public void SetUp()
        {
            _appender = new TestAppender(true);

            _configResolver = new Mock <IConfigurationResolver>();
            _configResolver.Setup(x => x.ResolveLogConfig(It.IsAny <string>()))
            .Returns(new LogConfig
            {
                Level     = Level.Debug,
                Appenders = new IAppender[] { _appender }
            });

            _logManager = new LogManager(_configResolver.Object, new ZeroLogInitializationConfig {
                LogEventQueueSize = 16, LogEventBufferSize = 128
            });
        }
Esempio n. 5
0
 public void SetUp()
 {
     _testAppender = new TestAppender(false);
     BasicConfigurator.Configure(new[] { _testAppender }, 16384, 512, Level.Finest, LogEventPoolExhaustionStrategy.WaitForLogEvent);
 }