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:
@@ -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>()));
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
{
|
||||
// pure mocks
|
||||
Mock,
|
||||
// log4net for tests
|
||||
Log4Net
|
||||
// Serilog for tests
|
||||
Serilog
|
||||
}
|
||||
|
||||
public enum Database
|
||||
|
||||
Reference in New Issue
Block a user