diff --git a/Program.cs b/Program.cs index 7616c49..391d106 100644 --- a/Program.cs +++ b/Program.cs @@ -9,6 +9,14 @@ logger.Info("Logging initialized."); try { var builder = WebApplication.CreateBuilder(args); + + builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace); + + if (!builder.Environment.IsDevelopment()) + { + builder.Logging.ClearProviders(); + builder.Host.UseNLog(); + } // Make sure to add the Ocelot configuration file var suffix = builder.Environment.IsDevelopment() ? ".Development" : ""; diff --git a/Properties/PublishProfiles/IISProfile.pubxml b/Properties/PublishProfiles/IISProfile.pubxml deleted file mode 100644 index 58f68b8..0000000 --- a/Properties/PublishProfiles/IISProfile.pubxml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Package - Release - Any CPU - - true - false - 329f45bf-4c79-4a7b-9086-d6205617aa42 - P:\Install .Net\0 DD - Smart UP\Gateway\UserManager\$(Version)\$(Version).zip - true - Gateway - <_TargetId>IISWebDeployPackage - - \ No newline at end of file