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