I am sorry for reporting not exactly a bug since I need your opinion if this is a bug or a feature (I missed).
Regarding JSON destructuring in Serilog.Sinks.File 5.0.0.
Taking the sample from the Serilog website startpage:
var position = new { Latitude = 25, Longitude = 134 };
var elapsedMs = 34;
log.Information("Processed {@Position} in {Elapsed:000} ms.", position, elapsedMs);
I am sorry for reporting not exactly a bug since I need your opinion if this is a bug or a feature (I missed).
Regarding JSON destructuring in Serilog.Sinks.File 5.0.0.
Taking the sample from the Serilog website startpage:
it creates two different results
{"Position": {"Latitude": 25, "Longitude": 134}, "Elapsed": 34}
and
09:14:22 [Information] Processed { Latitude: 25, Longitude: 134 } in 034 ms.
The difference I am pointing out are the existing/missing double quotes around the property names Latitude and Longitude.
Is the existence of the double quotes configurable or is the different behaviour a bug?
A similar question of mine on Stackoverflow provides a different example.... StackOverflow Question 75255058