Skip to content

Commit

Permalink
Resolving breaking change in LogFactory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Sep 6, 2023
1 parent 8bf9af1 commit 71ba4b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
var environment = context.HostingEnvironment;
var nLogConfig = Path.Combine(environment.ContentRootPath, "NLog.config");
var factory = new LogFactory()
.LoadConfiguration(nLogConfig);
.Setup()
.LoadConfigurationFromFile(nLogConfig)
.LogFactory;
factory.Configuration.Variables["configDir"] = environment.ContentRootPath;
Expand Down

0 comments on commit 71ba4b3

Please sign in to comment.