/// <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); } }