Provided by: libmongoc-doc_2.2.1-1_all bug

SYNOPSIS

          mongoc_structured_log_level_t
          mongoc_structured_log_opts_get_max_level_for_component (const mongoc_structured_log_opts_t *opts,
                                                                  mongoc_structured_log_component_t component);

PARAMETERS

opts: Structured log options, allocated with mongoc_structured_log_opts_new() <>.

       • component: Log component as a mongoc_structured_log_component_t <>.

RETURNS

       Returns the configured maximum log level for a specific component, as a mongoc_structured_log_level_t <>.
       This  may  be  the  last  value  set  with mongoc_structured_log_opts_set_max_level_for_component() <> or
       mongoc_structured_log_opts_set_max_level_for_all_components() <>, or it may be the default obtained  from
       environment variables.  If an invalid or unknown component enum is given, returns the lowest log level.

       See also:
          Structured Logging <>

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025MONGOC_STRUCTURED_LOG_...AX_LEVEL_FOR_COMPONENT(3)