borisermakof / serilog-sinks-fluentd

A Sink that writes logs into Fluentd
Apache License 2.0
20 stars 30 forks source link

Nested properties incorrectly rendered #26

Open tkrafael opened 2 years ago

tkrafael commented 2 years ago

Due to the MessagePackSerializer<IDictionary<string, object>>, property of nested objects are incorrectly rendered on msgpack:

log.LogInformation("this is cool data: {@data}", new {a = new {b = "test"}, c = "contoso", d = new {site = "a" }});

It does not render anything. However, when MessagePackSerializer used Dictionary<string, object> as its "T", it does correctly: image

Also, for boolean values, it gets rendered as string and fluentd get some issues into STREAM filtering. Can I upload a PR to fix those issues? Also, I saw another issue telling that there are memory leaks in this library and there's another fork (https://github.com/borisermakof/serilog-sinks-fluentd/issues/22 and https://github.com/iNiScorporation/custom-serilog-sinks-fluentd) Can you please tell us if this project is dead? And if not, is it possible to get those fixes from the links above?