Closed bigswede74 closed 1 year ago
Hi! AFAIK, Serilog.Settings.Configuration only supports reloading a small number of settings at runtime (minimum level being the one I know of). I don't think there's any support for reloading sink arguments like these. HTH!
Thanks for the quick response. Any recommendations on how I can accomplish this would be welcome. Should I just re-initialize a new logger and replace it in the DI container?
restart the app
Description
I have a windows application that is logging using the Serilog.Sinks.Seq. All the configuration is coming from the appsettings.json file however when I update the serverUri while the application is running the configuration is not dynamically reloaded until the application is restarted. Does the seq sink support dynamic configuration updates for the serverUri?
Reproduction
Program.cs
appsettings.json
Expected behavior Logs should be forwarded to the new seq address
Relevant package, tooling and runtime versions Packages
Platform