[SERVER-45817] Add api to provide both msg and libfmt argument to LOG Created: 28/Jan/20  Updated: 29/Oct/23  Resolved: 07/Feb/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.4

Type: New Feature Priority: Major - P3
Reporter: Sara Williamson Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2020-02-10
Participants:

 Description   

Today our LOG macro does this:
LOG(id, fmt, attr1, attr2...)

We want it to do this:
LOG(id, XXX(msg, fmt), attr1, attr2...)

We want to enforce that msg and fmt are literals.

We should also update README.md



 Comments   
Comment by Githook User [ 05/Feb/20 ]

Author:

{'username': 'henrikedin', 'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-45817 Add API to logv2 where user can provide both format and message string

One with libfmt replacement fields and one without.
Branch: master
https://github.com/mongodb/mongo/commit/67e70cffac0d02e6c2ff58d31f87a72529b017ae

Generated at Thu Feb 08 05:09:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.