DataDog / serilog-sinks-datadog-logs

Serilog Sink that sends log events to Datadog https://www.datadoghq.com/
Apache License 2.0
60 stars 41 forks source link

Can replace/extend default LogFormatter on configuration #73

Closed IFYates closed 1 year ago

IFYates commented 2 years ago

Proposal for an extension point on the default LogFormatter (TransformPayload) and the ability to pass in any custom ILogFormatter as desired.

Included basic example shows replacing the tags.

An example of a real usage is #43

gh123man commented 1 year ago

Hi, Thanks for this PR - this is a good suggestion, however we went with a different approach. Instead of exposing a custom ILogFormatter - we instead expose the Serilog native ITextFormatter interface.

https://github.com/DataDog/serilog-sinks-datadog-logs/pull/86