Skip to content

Is formating for log messages actually implemented? #2628

Open
@GeorgViehoever

Description

@GeorgViehoever

I am trying to use formatting for log messages as suggested in

* @format an utf-8 string following https://messagetemplates.org/
. It does not seem to work.
Q: Is it actually implemented?
Q: Do you have an example code for me? Something like:

std::map<std::string, std::string> labelsTrace = {{"userId", "myUserId"}};
 logger->Trace(
 	  "traceLogMessage of user {userId}";
 	  labelsTrace);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdo-not-staledocumentationImprovements or additions to documentationgood first issueGood for newcomerstriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions