MONGOC_STRUCT...ET_NAMED_LEVEL(3)
π MONGOC_STRUCT...GET_NAMED_LEVEL(3) π
okay bestie, welcome to the libmongoc corner of the manpage universe β this one's short and sweet and honestly kind of iconic for it. No cap, it's just a little lookup function that turns a name into a log level. That's the whole vibe. π
β¨ SYNOPSIS β¨
bool
mongoc_structured_log_get_named_level (const char *name, mongoc_structured_log_level_t *out);
So likeβ¦ you hand it a name, and it goes looking for a log level with that name. Case insensitive, babes β "WARNING", "warning", "WaRnInG", doesn't matter, it does not care about your caps lock situation. π
πΈ PARAMETERS πΈ
nameβ the name you want looked up as a log level. Just a string, that's it, that's the whole assignment. π¦outβ a pointer to amongoc_structured_log_level_t. On success, the corresponding level gets written right here. It's giving "output parameter main character energy". β¨
β RETURNS β
Two paths, bestie, and they're very clear about it:
- If the level name is known β returns
trueand writes the level enum to*out. Slay. β - If the level name is not known β returns
falseand does not write*out. So like, don't go reading*outexpecting a consolation prize, because there isn't one. π
fr fr:falsemeans*outis untouched. Treat it as unset, not as "some default level". That's the whole point of the wording.
π SEE ALSO π
- Structured Logging
π«Ά AUTHOR π«Ά
MongoDB, Inc β yes, that MongoDB, Inc. Periodt. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β the whole run, still going. π
and that's the page!! libmongoc 2.5.6, dated Oct 09, 2026 β go forth and look up your levels by name, bestie, iykyk ππ
π¦ 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