serilog / serilog-sinks-email

A Serilog sink that writes events to SMTP email
Apache License 2.0
76 stars 69 forks source link

Redesign configuration method #123

Closed nblumhardt closed 11 months ago

nblumhardt commented 11 months ago

WriteTo.Email() needs a refresh, after many years of incremental additions.

This PR renames and reorganizes the configuration options to bring them up to a reasonable standard.

Parameter Description
from The email address emails will be sent from.
to The email address emails will be sent to. Multiple addresses can be separated with commas or semicolons.
host The SMTP server to use.
port The port used for the SMTP connection. The default is 25.
connectionSecurity Choose the security applied to the SMTP connection. This enumeration type is supplied by MailKit. The default is Auto.
credentials The network credentials to use to authenticate with the mail server.
subject A message template describing the email subject. The default is "Log Messages".
body A message template describing the format of the email body. The default is "{Timestamp} [{Level}] {Message}{NewLine}{Exception}".
formatProvider Supplies culture-specific formatting information. The default is to use the current culture.
nblumhardt commented 11 months ago

Liking the net462;netstandard2.0;net6.0 TFM combo :+1: