logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       MongoDB, Inc

Parameters

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

       • component: The component to set a max log level. for, as a mongoc_structured_log_component_t.

       • level: The new max log level for this component, as a mongoc_structured_log_level_t.

Returns

       Returns true on success, or false if the supplied parameters were incorrect.

       SEEALSO:StructuredLogging

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);

       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.

       By   default,   each   component's   log   level   may   come   from    environment    variables.     See
       mongoc_structured_log_opts_set_max_levels_from_env().

See Also