MONGOC_STRUCTU...MESSAGE_STRING(3)
okay bestie, welcome to the MONGOC_STRUCTU...MESSAGE_STRING(3) page from libmongoc β¨ it's literally all about pulling the message string off a structured log entry, no cap.
β¨ SYNOPSIS β¨
const char *
mongoc_structured_log_entry_get_message_string (const mongoc_structured_log_entry_t *entry);
π PARAMETERS π
entryβ amongoc_structured_log_entry_tpointer. That's the structured log entry you're asking for the message string from, bestie.
π RETURNS π
You get back a string π and this part is important: it's guaranteed to be valid only during the lifetime of the structured log handler. So don't get attached and don't hang onto it after that, okay? It should not be freed or modified β nope, not yours to mess with.
This return value is identical to the value of the message key in the document returned by mongoc_structured_log_entry_message_as_bson().
Also lowkey important: this is not a complete string representation of the structured log. It's a standardized identifier for a particular log event. So it's more like the event's name tag than the whole story, iykyk.
π SEE ALSO: Structured Logging
πΈ AUTHOR πΈ
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay that's the whole vibe π«Ά this page is from libmongoc version 2.5.6, dated Oct 09, 202. periodt. π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms