Changes in tests proj to not use Log4Net but Serilog

However not sure how this is used to where the output of the logs was viewed when it was set/configured to console - VS Output Window, VSTS Logs?
This commit is contained in:
Warren
2018-07-31 22:03:41 +01:00
parent eda6c62fcc
commit 1a69297c7e
7 changed files with 25 additions and 47 deletions

View File

@@ -165,7 +165,7 @@ namespace Umbraco.Tests.Testing
Container.RegisterSingleton(f => Mock.Of<ILogger>());
Container.RegisterSingleton(f => Mock.Of<IProfiler>());
}
else if (option == UmbracoTestOptions.Logger.Log4Net)
else if (option == UmbracoTestOptions.Logger.Serilog)
{
Container.RegisterSingleton<ILogger>(f => new Logger(new FileInfo(TestHelper.MapPathForTest("~/unit-test-log4net.config"))));
Container.RegisterSingleton<IProfiler>(f => new LogProfiler(f.GetInstance<ILogger>()));

View File

@@ -6,8 +6,8 @@
{
// pure mocks
Mock,
// log4net for tests
Log4Net
// Serilog for tests
Serilog
}
public enum Database