• Stars
    star
    2
  • Language
    C#
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Serilog sink that writes events to fake SMTP email

Serilog.Sinks.Mailtrap

Build status

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();