Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 641 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 641 Bytes

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(
        fromEmail: "[email protected]",
        toEmail: "[email protected]",
        mailServer: "smtp.example.com")
    .CreateLogger();

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