Skip to content

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.

License

Notifications You must be signed in to change notification settings

gkinsman/Serilog.Sinks.EmailPickup

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: "[email protected]",
        toEmail: "[email protected]",
        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

License

Stars

Watchers

Forks

Packages

No packages published