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 a mongoc_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 πŸ’œ


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