TheTrackerCouncil / SMZ3Randomizer

Tracker presents: a casual standalone version of the Super Metroid & A Link to the Past Crossover Randomizer with built-in automatic item tracking and Twitch integration
https://vivelin.net/projects/smz3
MIT License
26 stars 8 forks source link

Update server logging to use serilog #529

Closed MattEqualsCoder closed 3 months ago

MattEqualsCoder commented 3 months ago

After moving hosts, I noticed the server doesn't actually write the logs to a file, so I wanted to fix that. Used serilog as it allows easy customization of logging via config files.

Vivelin commented 3 months ago

Why wouldn't we just use ASP.NET's own logging stuff?

MattEqualsCoder commented 3 months ago

Why wouldn't we just use ASP.NET's own logging stuff?

Some of it is just down to preference, I suppose. I like the customization and formatting of serilog over ASP.NET's default logging. It likes to add multiple lines for each log entry for whatever reason that makes reading the logs atrocious imo.