Merge branch 'merge/release/2.2-to-master'

This commit is contained in:
Pavel Krymets 2018-11-06 15:12:04 -08:00
Родитель f47c5901b6 f024e779a6
Коммит 8027397d67
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -58,8 +58,9 @@ namespace Microsoft.AspNetCore.NodeServices
var loggerFactory = serviceProvider.GetService<ILoggerFactory>();
NodeInstanceOutputLogger = loggerFactory != null
? loggerFactory.CreateLogger(LogCategoryName)
#pragma warning disable CS0618 // Type or member is obsolete
: new ConsoleLogger(LogCategoryName, null, false);
#pragma warning restore CS0618
// By default, we use this package's built-in out-of-process-via-HTTP hosting/transport
this.UseHttpHosting();
}

Просмотреть файл

@ -18,7 +18,9 @@ namespace Microsoft.AspNetCore.SpaServices.Util
var loggerFactory = appBuilder.ApplicationServices.GetService<ILoggerFactory>();
var logger = loggerFactory != null
? loggerFactory.CreateLogger(logCategoryName)
#pragma warning disable CS0618 // Type or member is obsolete
: new ConsoleLogger(logCategoryName, null, false);
#pragma warning restore CS0618
return logger;
}
}