Merge branch 'merge/release/2.2-to-master'
This commit is contained in:
Коммит
8027397d67
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче