Open Ernest314 opened 1 year ago
Serilog has multiple ways of using config files, the default which is the XML-based <appSettings>
(App.config
). However, the JSON-based appsettings.json
seems nicer to use.
See: https://github.com/serilog/serilog-settings-configuration
(and for the XML-based config, see: https://github.com/serilog/serilog/wiki/AppSettings)
Instead of handling all the initialization in code. This also makes the Serilog configuration portable (so it can be used elsewhere).