ErythroGuild / irene

<Erythro>'s server admin bot.
Mozilla Public License 2.0
0 stars 0 forks source link

Switch to using a configuraton file for Serilog #390

Open Ernest314 opened 1 year ago

Ernest314 commented 1 year ago

Instead of handling all the initialization in code. This also makes the Serilog configuration portable (so it can be used elsewhere).

Ernest314 commented 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)