Skip to content

Subject config does not make use of IBatchTextFormatter #132

@ite-klass

Description

@ite-klass

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions