You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to configure Serilog.Sinks.Splunk.EventCollectorSink from appsettings.json, but can't get it to construct the CustomFields object. Among other things, I tried structuring "fields" for ConfigurationBinding.Get. That failed because CustomField doesn't have a default constructor.
Please add a default constructor on CustomField so that it can be deserialized from JSON like this:
I've been trying to configure Serilog.Sinks.Splunk.EventCollectorSink from appsettings.json, but can't get it to construct the CustomFields object. Among other things, I tried structuring "fields" for ConfigurationBinding.Get. That failed because CustomField doesn't have a default constructor.
Please add a default constructor on CustomField so that it can be deserialized from JSON like this:
The text was updated successfully, but these errors were encountered: