Set log level. (#829)

This commit is contained in:
Tony Xia 2017-11-14 09:15:37 +11:00 committed by BrennanConroy
parent 6294d38805
commit 2d1aaeb036
1 changed files with 3 additions and 2 deletions

View File

@ -53,9 +53,10 @@ namespace MusicStore
builder.ConfigureLogging(factory =>
{
var logLevel = string.Equals(environment, "Development", StringComparison.Ordinal) ? LogLevel.Information : LogLevel.Warning;
factory.AddConsole();
var logLevel = string.Equals(environment, "Development", StringComparison.Ordinal) ? LogLevel.Information : LogLevel.Warning;
factory.SetMinimumLevel(logLevel);
});
var host = builder.Build();