MONGOC_STRUCTU..._FOR_COMPONENT(3)
π MONGOC_STRUCTU..._FOR_COMPONENT(3) β libmongoc manual page π
okay so bestie, you found the MONGOC_STRUCTU..._FOR_COMPONENT(3) page in the libmongoc manual. we're doing per-component log levels and we're doing them cute. no cap.
β¨ SYNOPSIS β¨
bool
mongoc_structured_log_opts_set_max_level_for_component (mongoc_structured_log_opts_t *opts,
mongoc_structured_log_component_t component,
mongoc_structured_log_level_t level);
This one sets the maximum log level per-component. Only log messages at or below this severity level will be passed to mongoc_structured_log_func_t. periodt.
By default, each component's log level may come from environment variables. See mongoc_structured_log_opts_set_max_levels_from_env(). iykyk.
π PARAMETERS π
optsβ Structured log options, allocated withmongoc_structured_log_opts_new(). this is your options setup, bestie.componentβ The component to set a max log level for, as amongoc_structured_log_component_t. pick the component that needs its vibe checked.levelβ The new max log level for this component, as amongoc_structured_log_level_t. set the ceiling, queen.
πΈ RETURNS πΈ
Returns true on success, or false if the supplied parameters were incorrect. yes, it will tell you when the args are not giving.
π SEE ALSO π
- Structured Logging β the reference. go read it, it's iconic.
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π β this page came from libmongoc version 2.5.6, dated Oct 09, 202. that's the footer tea, bestie π
π¦ 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