My ASP.NET Core 2.1 app logs to a Serilog file sink, all the \"usual stuff\" - i.e. app related stuff such as debug, monitoring, performance, etc.
However we also ne
Serilog.Sinks.Map does this, and includes a file logging example:
Log.Logger = new LoggerConfiguration() .WriteTo.Map("EventId", "Other", (name, wt) => wt.File($"./logs/log-{name}.txt")) .CreateLogger();