ChangemakerStudios / serilog-sinks-mongodb

A sink for Serilog that writes events to MongoDB
Apache License 2.0
92 stars 53 forks source link

Properties with dot cannot be inserted into MongoDB #58

Closed IvaskevychYuriy closed 3 years ago

IvaskevychYuriy commented 3 years ago

Mongo cannot insert documents that contain properties with dots, like so:

{ "some.property": 123 }

Hence there are no logs produced when any of the properties contain dot character, either from injected proeprties, templated message or exception data.

There was a broken fork - https://github.com/DarkXoro/serilog-sinks-mongodb And proposed (yet no merged) PR two years ago - https://github.com/serilog/serilog-sinks-mongodb/pull/45/ Previous issue (closed but not resolved) - https://github.com/serilog/serilog-sinks-mongodb/issues/29

This bug is almost two (!) years old, I'm willing to fix the previous fork and propose a new PR

IvaskevychYuriy commented 3 years ago

This is now in PR https://github.com/serilog/serilog-sinks-mongodb/pull/60

Jaben commented 3 years ago

v5.0-dev has this fix. Closing for now.