Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subject config does not make use of IBatchTextFormatter #132

Open
ite-klass opened this issue Apr 15, 2024 · 0 comments
Open

Subject config does not make use of IBatchTextFormatter #132

ite-klass opened this issue Apr 15, 2024 · 0 comments

Comments

@ite-klass
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant