Skip to content

Repository files navigation

Serilog.Sinks.EmailPickup NuGet license

A sink that sends log events to the file system in an email format that can be picked up by, for example, IIS. Does the same thing as the log4net SmtpPickupDirAppender.

Package - Serilog.Sinks.EmailPickup | Platforms - .NET 4.5, .Net Standard 1.6

var log = new LoggerConfiguration()
    .WriteTo.EmailPickup(
        fromEmail: "app@example.com",
        toEmail: "support@example.com",
        pickupDirectory: @"c:\logs\emailpickup",
        subject: "UH OH",
        fileExtension: ".email",
        restrictedToMinimumLevel: LogEventLevel.Error)
    .CreateLogger();

About

A sink that sends log events to the file system in an email format that can be picked up by, for example, IIS. Does the same thing as the log4net SmtpPickupDirAppender.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages