зеркало из https://github.com/microsoft/Omex.git
GitHub Forward Integration - f4f2c70dad
14206674
This commit is contained in:
Коммит
99b9ce9c79
|
@ -24,7 +24,11 @@ namespace Microsoft.Omex.Extensions.Logging
|
|||
|
||||
private static ILoggingBuilder LoadInitializationLogger(this ILoggingBuilder builder)
|
||||
{
|
||||
builder.AddConsole();
|
||||
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development")
|
||||
{
|
||||
builder.AddConsole();
|
||||
}
|
||||
|
||||
builder.AddOmexLogging();
|
||||
return builder;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче