/serilog-sinks-email

A Serilog sink that writes events to SMTP email

Primary LanguageC#Apache License 2.0Apache-2.0

Serilog.Sinks.Email

Build status

Sends log events by SMTP email.

Package - Serilog.Sinks.Email | Platforms - .NET 4.5

var log = new LoggerConfiguration()
    .WriteTo.Email(
        from: "app@example.com",
        to: "support@example.com",
        mailServer: "smtp.example.com")
    .CreateLogger();

An overload accepting EmailConnectionInfo can be used to specify advanced options.