Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Override type name if specified #365

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

orjan
Copy link
Contributor

@orjan orjan commented Sep 26, 2020

Fixes a regression introduced in #356
We should override the TypeName if it's specified.

Note that there are different defaults depending
on how the options are created.

  • Created from configuration it defaults to logevent
  • Created from code it defaults to _doc

What issue does this PR address?
#364

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • Unit Tests for the changes have been added (for bug fixes / features)

Fixes a regression introduced in serilog-contrib#356
We should override the TypeName if it's specified.

Note that there are different defaults depending
on how the options are created.
- Created from configuration it defaults to `logevent`
- Created from code it defaults to `_doc`
@mivano mivano merged commit a3c197b into serilog-contrib:dev Sep 28, 2020
@mivano
Copy link
Contributor

mivano commented Sep 28, 2020

Thanks for looking into this and providing a fix!

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

Successfully merging this pull request may close these issues.

2 participants