diff --git a/src/Logging/InitializationLogger.cs b/src/Logging/InitializationLogger.cs index 37b3b1c1..7d028902 100644 --- a/src/Logging/InitializationLogger.cs +++ b/src/Logging/InitializationLogger.cs @@ -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; }