Skip to content

0xced/serilog-sinks-email

 
 

Repository files navigation

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: "app@example.com",
        toEmail: "support@example.com",
        mailServer: "smtp.example.com")
    .CreateLogger();

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

About

A Serilog sink that writes events to SMTP email

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 94.3%
  • PowerShell 4.0%
  • Shell 1.7%