You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use loggerFactory.AddFile(AppSettings.Configuration.GetSection("Logging:Serilog")); in Startup.Configure, when appsettings.json file changed, i want update the settings of serilog.
I use ChangeToken.OnChange for response the changing:
ChangeToken.OnChange(()=>AppSettings.Configuration.GetReloadToken(), env_ =>{//how to reconfigure serilog?},env);
The text was updated successfully, but these errors were encountered:
I use
loggerFactory.AddFile(AppSettings.Configuration.GetSection("Logging:Serilog"));
inStartup.Configure
, whenappsettings.json
file changed, i want update the settings of serilog.I use
ChangeToken.OnChange
for response the changing:The text was updated successfully, but these errors were encountered: