Remove configuration from LoggerFactory constructor

This commit is contained in:
BrennanConroy 2017-04-25 15:45:29 -07:00
parent a67bbab6b3
commit 3936bf64f6
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ namespace Microsoft.AspNetCore.Hosting
_context.Configuration = configuration;
// The configured ILoggerFactory is added as a singleton here. AddLogging below will not add an additional one.
var loggerFactory = _createLoggerFactoryDelegate?.Invoke(_context) ?? new LoggerFactory(configuration.GetSection("Logging"));
var loggerFactory = _createLoggerFactoryDelegate?.Invoke(_context) ?? new LoggerFactory();
services.AddSingleton(loggerFactory);
_context.LoggerFactory = loggerFactory;