markmcdowell / NLog.Targets.ElasticSearch

NLog target for Elasticsearch
MIT License
176 stars 89 forks source link

feat: Enable override of jsonserialize for additional object types #131

Closed snakefoot closed 4 years ago

snakefoot commented 4 years ago

Alternative implementation of #126 that resolves #127

Then you can do like this, to specify that reflection should be skipped for System.Uri-types and instead just do object.ToString():

        <target xsi:type="ElasticSearch">
          <typeconverter objecttype="System.Uri, System.Private.Uri" />
        </target>

Checklist