I'm using Serilog and Serilog.Formatting.Compact to write logs into a file. How can I dynamically format property names?
I want each property name to include its type.
For example: bool_property_name, string_property_name, date_property_name....
logger.Information("this is a message with {property_name}", "value");
or
logger
.ForContext("property_name", "value")
.Information("this is a message");
should be in the log:
{ ...., string_property_name: "value" }