MONGOC_STRUCTU...GET_LEVEL_NAME(3)
β¨ MONGOC_STRUCTU...GET_LEVEL_NAME(3) β¨
okay so bestie, this one lives in the libmongoc manual π and it's literally the tiniest little helper β it just tells you the name of a structured-logging level. that's it. that's the whole vibe. π¦
π SYNOPSIS
const char *
mongoc_structured_log_get_level_name (mongoc_structured_log_level_t level);
likeβ¦ one function, one argument, returns a string. she's lowkey minimal and we respect it π
πΈ PARAMETERS
levelβ the log level you're curious about, handed in as amongoc_structured_log_level_t. that's the whole ask π«Ά
β RETURNS
so here's the tea β β if the level is known, you get back a pointer to a constant string and you should not free it, bestie, do not touch it with free(), it's not yours, leave her alone ππ
but if the level has no known name, you get NULL. that's it. no name, no string, just the void π
π₯ SEE ALSO:
- Structured Logging β go read that one too, iykyk β¨
π AUTHOR
MongoDB, Inc β the icons behind all of this, fr fr π
π COPYRIGHT
2009-present, MongoDB, Inc. β periodt, that's the legal bit, keep it in your notes π
ngl this page is short but she ate. no cap. π
bye bestie!! this was libmongoc version 2.5.6, dated around Oct 09, 202β¦ (the footer year got literally cut off mid-character by the truncation, rip ππ) β see you in the next manpage!! π«ΆπΈπ§
π¦ 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