Open ite-klass opened 7 months ago
EmailSinkOptions has a property Subject of type ITextFormatter.
EmailSinkOptions
Subject
ITextFormatter
IBatchTextFormatter specifies in its summary xdoc:
IBatchTextFormatter
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.
SerilogEmailSubject
I now expect the email subject to make use of the FormatBatch method instead of Format.
FormatBatch
Format
But an email with 8 log messages seems to use Format with presumably the last log event.
EmailSinkOptions
has a propertySubject
of typeITextFormatter
.IBatchTextFormatter
specifies in its summary xdoc:I implemented a class
SerilogEmailSubject
implementingIBatchTextFormatter
and setSubject
to an instance of it.I now expect the email subject to make use of the
FormatBatch
method instead ofFormat
.But an email with 8 log messages seems to use
Format
with presumably the last log event.