Serilog.Sinks.Mailtrap
A Serilog sink that writes events to fake SMTP email https://mailtrap.io/
var log = new LoggerConfiguration()
.WriteTo.Mailtrap(
username: "yourmailtrapuser",
password: "yourmailtrappass",
fromEmail: "[email protected]",
toEmail: "[email protected]",
outputTemplate: "[{Level}] {Message}{NewLine}{Exception}",
mailSubject: "subject")
.CreateLogger();