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 with mongoc_structured_log_opts_new(). this is your options setup, bestie.
  • component β€” The component to set a max log level for, as a mongoc_structured_log_component_t. pick the component that needs its vibe checked.
  • level β€” The new max log level for this component, as a mongoc_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

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