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
Now if I change the appsettings.json to this and save the file, nothing is changed. I expect a lot more the be seen in the log when I visit a controller.
N.B.: The best way to get answers on usage of Serilog is to post a question on stackoverflow.com including the serilog tag and details of the code you are using and some context the kind of app you are building
Description
Changing values to "Override" property in the appsettings.json during runtime has no effect.
Reproduction
Sample appsettings.json
Sample program.cs code bits
Now if I change the appsettings.json to this and save the file, nothing is changed. I expect a lot more the be seen in the log when I visit a controller.
Only when I restart the app my changes take effect.
Expected behavior
The overrides to change to the new values, and I should see a lot more log entries.
Relevant package, tooling and runtime versions
.NET 7
Serilog.AspNetCore v6.1.0
Serilog.Sinks.Seq v5.2.2
Additional context
Code samples are simple but it is used in a simple MVC app where ILogger is injected to the controller. Logs are also saved to Seq
The text was updated successfully, but these errors were encountered: