diff --git a/Program.cs b/Program.cs index 7616c49..a527042 100644 --- a/Program.cs +++ b/Program.cs @@ -10,6 +10,10 @@ try { var builder = WebApplication.CreateBuilder(args); + builder.Logging.ClearProviders(); + builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace); + builder.Host.UseNLog(); + // Make sure to add the Ocelot configuration file var suffix = builder.Environment.IsDevelopment() ? ".Development" : ""; builder.Configuration.AddJsonFile($"ocelot{suffix}.json");