Closed lloydpowell88 closed 7 years ago
LGTM 👍
@adamchester the EmailConnectionInfo
type seems out of step with most other Serilog libraries now - what are your thoughts on it? Should we open an up-for-grabs issue for someone to deprecate it/move the args to the extension methods directly?
@nblumhardt yes I think I see what you mean. Are you thinking about its impact on configuration (aside from it being a different/inconsistent pattern)?
@adamchester yes; that and general "learnability". Having the API shaped consistently also makes things like the analyzer more useful.
👍
I also wonder now if MailKit
should be a separate sink. As both sinks needed the same changes in this PR. Maybe we need an IEmailTransport
@adamchester 👍 raised both.
I agree with the MailKit
separation. The changes were identical, although if they had been more intricate then specific knowledge in that area would need to be gathered to make the change to the ordinary EmailSink
.
Either way, I've made those minor changes and pushed them up. Thanks for that!
The subject line now works similarly to the message content, rather than being a static string, it can now contain templated areas such as {Level}, {MachineName} and any of the other placeholders.