Where can I find the function that formats a log string and its parameters with the new Structured Logging format. I'm looking for the equivalent of "string.Format(..." but for Structured Logging.
I didn't find the information in the doc: How to use structured logging
I receive the proper formatter function (the one I'm looking for) if I define my own Logger so it should exists somewhere? Where and how to use it?
For example:
string relatedBug = "toto";
return FuncICannotFindToFormatLog("Log a bug related to {relatedBug}", relatedBug);
result ==> "Log a bug related to toto"
I think I found it and it appears to be Microsoft Internal. This is the code (slightly adapted to run with my code).