Exemplo n.º 1
0
 /// <summary>
 /// Constructs a new Logger instance.
 /// </summary>
 /// <param name="testSite">The test site this logging object is hosted in.</param>
 internal Logger(ITestSite testSite)
 {
     this.testSite = testSite;
     this.logProfile = LogProfileParser.CreateLogProfileFromConfig(testSite.Config, testSite.TestAssemblyName);
     this.ActiveLoggingProfile = LogProfileParser.ActiveProfileNameInConfig;
     RegisterDefaultLogProviders();
     logRunner = new Thread(Run);
     logRunner.Start();
     if (!outputStatistics.ContainsKey(testSite))
     {
         outputStatistics.Add(testSite, true);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a new Logger instance.
 /// </summary>
 /// <param name="testSite">The test site this logging object is hosted in.</param>
 internal Logger(ITestSite testSite)
 {
     this.testSite             = testSite;
     this.logProfile           = LogProfileParser.CreateLogProfileFromConfig(testSite.Config, testSite.TestAssemblyName);
     this.ActiveLoggingProfile = LogProfileParser.ActiveProfileNameInConfig;
     RegisterDefaultLogProviders();
     logRunner = new Thread(Run);
     logRunner.Start();
     if (!outputStatistics.ContainsKey(testSite))
     {
         outputStatistics.Add(testSite, true);
     }
 }