public ReminderTests_Base(BaseClusterFixture fixture)
        {
            HostedCluster = fixture.HostedCluster;

            ClientConfiguration cfg = ClientConfiguration.LoadFromFile("ClientConfigurationForTesting.xml");

            LogManager.Initialize(cfg);
#if DEBUG
            LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3);
            LogManager.AddTraceLevelOverride("Reminder", Severity.Verbose3);
#endif
            log = LogManager.GetLogger(this.GetType().Name, LoggerType.Application);
        }
예제 #2
0
        public void Logger_AddRemoveOverride()
        {
            const string name         = "LoggerOverrideTest";
            const string fullName     = "Runtime." + name;
            var          logger       = LogManager.GetLogger(name, LoggerType.Runtime);
            var          initialLevel = logger.SeverityLevel;

            LogManager.AddTraceLevelOverride(fullName, Severity.Warning);
            Assert.Equal(Severity.Warning, logger.SeverityLevel);   //  "Logger level not reset after override added"

            LogManager.RemoveTraceLevelOverride(fullName);
            Assert.Equal(initialLevel, logger.SeverityLevel);   //  "Logger level not reset after override removed"
        }
예제 #3
0
 public MySqlMembershipTableTests(ConnectionStringFixture fixture, TestEnvironmentFixture environment) : base(fixture, environment)
 {
     LogManager.AddTraceLevelOverride(typeof(MySqlMembershipTableTests).Name, Severity.Verbose3);
 }
 public PostgreSqlRemindersTableTests(ConnectionStringFixture fixture) : base(fixture)
 {
     LogManager.AddTraceLevelOverride(nameof(PostgreSqlRemindersTableTests), Severity.Verbose3);
 }
예제 #5
0
 public AzureRemindersTableTests(ConnectionStringFixture fixture) : base(fixture)
 {
     LogManager.AddTraceLevelOverride("AzureTableDataManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("OrleansSiloInstanceManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3);
 }
예제 #6
0
 public AzureMembershipTableTests(ConnectionStringFixture fixture, TestEnvironmentFixture environment) : base(fixture, environment)
 {
     LogManager.AddTraceLevelOverride("AzureTableDataManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("OrleansSiloInstanceManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3);
 }
예제 #7
0
 public MySqlRemindersTableTests(ConnectionStringFixture fixture, TestEnvironmentFixture environment) : base(fixture, environment)
 {
     LogManager.AddTraceLevelOverride(nameof(MySqlRemindersTableTests), Severity.Verbose3);
 }
예제 #8
0
 public ConsulMembershipTableTest(ConnectionStringFixture fixture, TestEnvironmentFixture environment) : base(fixture, environment)
 {
     LogManager.AddTraceLevelOverride("ConsulBasedMembershipTable", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3);
 }
예제 #9
0
 public DynamoDBMembershipTableTest(ConnectionStringFixture fixture) : base(fixture)
 {
     LogManager.AddTraceLevelOverride("DynamoDBDataManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("OrleansSiloInstanceManager", Severity.Verbose3);
     LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3);
 }
예제 #10
0
 public PostgreSqlMembershipTableTests(ConnectionStringFixture fixture) : base(fixture)
 {
     LogManager.AddTraceLevelOverride(typeof(PostgreSqlMembershipTableTests).Name, Severity.Verbose3);
 }