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

Feature/allow specifying custom splunkjsonformatter #1

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

nielsabels
Copy link

Hi there 👋 .

I found your NuGet package when looking for a package that was better at coping with Splunk server-side failures, and stumbled upon your durable version of the Splunk sink for Serilog. Thanks for making it!

When test-driving the NuGet package I found that the fields ended up with different names in Splunk. For instance, @Level instead of Level, and no Properties.* before custom properties.

The solution for me would be to specify a custom ITextFormatter, so that I can take care of serialization myself (or lift the formatter from the Serilog.Sinks.Splunk package).

This PR allows for that extension. I opted to leave the custom formatter out, since people can find it freely on Serilog.Sinks.Splunk.

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

Successfully merging this pull request may close these issues.

1 participant