-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Mapped Diagnostic Context (MDC) support #2907
Conversation
@gabime Can I do something about this PR? |
@massimiliano96 I don't have time to look at it these days, since I am under missile attacks 24x7 launched by the Hamas terrorists. |
@gabime I'm really sorry, I had no idea you were in Israel. My thoughts are with you and your family during this terrible situation. Stay safe. |
c1f3b3b
to
9f71f36
Compare
Thanks @massimiliano96 ! |
Thanks to you @gabime ! I'm going to create another PR for example.cpp and updated docs. |
@massimiliano96 just checking, will this work correctly with |
You are right @sketch34. It is not supported in async loggers. I updated the docs. |
Description
This pull request introduces support for Mapped Diagnostic Context (MDC). MDC allows users to associate contextual information with log events, providing valuable insights into specific execution flows.
Changes:
Added mdc_formatter class to handle MDC formatting.
Introduced MDC class to manage contextual information.
Provided test cases to validate MDC functionality.
Usage:
Test Cases: