`Subject` config does not make use of `IBatchTextFormatter`
ite-klass opened this issue · 0 comments
ite-klass commented
EmailSinkOptions
has a property Subject
of type ITextFormatter
.
IBatchTextFormatter
specifies in its summary xdoc:
Pass an instance for the argument when configuring the sink.
I implemented a class SerilogEmailSubject
implementing IBatchTextFormatter
and set Subject
to an instance of it.
I now expect the email subject to make use of the FormatBatch
method instead of Format
.
But an email with 8 log messages seems to use Format
with presumably the last log event.