Exemplo n.º 1
0
 public void SetUpFixture()
 {
     _testAppender = new TestAppender(true);
     BasicConfigurator.Configure(new List <IAppender> {
         _testAppender
     }, 10);
 }
Exemplo n.º 2
0
 public void SetUpFixture()
 {
     _testAppender = new TestAppender(true);
     BasicConfigurator.Configure(new List <IAppender> {
         _testAppender
     }, new ZeroLogInitializationConfig {
         LogEventQueueSize = 10
     });
 }
Exemplo 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
            });
        }
Exemplo 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
            });
        }
Exemplo n.º 5
0
 public void SetUp()
 {
     _testAppender = new TestAppender(false);
     BasicConfigurator.Configure(new[] { _testAppender }, 16384, 512, Level.Finest, LogEventPoolExhaustionStrategy.WaitForLogEvent);
 }