MONGOC_STRUCTURED_LOG_LEVEL_T(3)
π MONGOC_STRUCTURED_LOG_LEVEL_T(3) β libmongoc, but make it bestie π
okay so bestie, this is the MONGOC_STRUCTURED_LOG_LEVEL_T(3) manual page from libmongoc, and it's literally all about the enum for structured logging levels plus two little functions that translate levels to names and back. no cap, we're keeping every value and signature. π«Ά
β¨ SYNOPSIS β¨
typedef enum {
MONGOC_STRUCTURED_LOG_LEVEL_EMERGENCY = 0,
MONGOC_STRUCTURED_LOG_LEVEL_ALERT = 1,
MONGOC_STRUCTURED_LOG_LEVEL_CRITICAL = 2,
MONGOC_STRUCTURED_LOG_LEVEL_ERROR = 3,
MONGOC_STRUCTURED_LOG_LEVEL_WARNING = 4,
MONGOC_STRUCTURED_LOG_LEVEL_NOTICE = 5,
MONGOC_STRUCTURED_LOG_LEVEL_INFO = 6,
MONGOC_STRUCTURED_LOG_LEVEL_DEBUG = 7,
MONGOC_STRUCTURED_LOG_LEVEL_TRACE = 8,
} mongoc_structured_log_level_t;
mongoc_structured_log_level_t enumerates the available log levels for use with structured logging. that's the whole vibe: it's the enum listing the levels you can use when you're doing structured logging. π¦
π FUNCTIONS π
π mongoc_structured_log_get_level_name() π
Synopsis
const char *
mongoc_structured_log_get_level_name (mongoc_structured_log_level_t level);
Parameters
level: Log level as amongoc_structured_log_level_t.
Returns
If the level is known, returns a pointer to a constant string that should not be freed. If the level has no known name, returns NULL.
okay so important: that returned string is constant and should not be freed β do not try to free it, bestie. π
SEE ALSO: Structured Logging
π¦ mongoc_structured_log_get_named_level() π¦
Synopsis
bool
mongoc_structured_log_get_named_level (const char *name, mongoc_structured_log_level_t *out);
Look up a log level by name. Case insensitive.
Parameters
name: A name to look up as a log level.out: On success, the correspondingmongoc_structured_log_level_tis written here.
Returns
If the level name is known, returns true and writes the level enum to *out. If the level name is not known, returns false and does not write *out.
SEE ALSO: Structured Logging
SEE ALSO: Structured Logging
yes, the SEE ALSO line is here twice in the original, and we're keeping both. periodt. π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
π That's the whole MONGOC_STRUCTURED_LOG_LEVEL_T(3) page, bestie β from libmongoc version 2.5.6, dated Oct 09, 2026. slay! π
π¦ 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