mongoc_structured_log_opts_set_max_level_for_all_components(3)
| MONGOC_STRUCTURED_LOG_OPTS_SET_MAX_LEVEL_FOR_ALL_COMPONENTS(3) | libmongoc | MONGOC_STRUCTURED_LOG_OPTS_SET_MAX_LEVEL_FOR_ALL_COMPONENTS(3) |
SYNOPSIS
bool mongoc_structured_log_opts_set_max_level_for_all_components (mongoc_structured_log_opts_t *opts,
mongoc_structured_log_level_t level);
Sets all per-component maximum log levels to the same value. Only log messages at or below this severity level will be passed to mongoc_structured_log_func_t <>. Effective even for logging components not known at compile-time.
PARAMETERS
- opts: Structured log options, allocated with mongoc_structured_log_opts_new() <>.
- level: The max log level for all components, as a mongoc_structured_log_level_t <>.
RETURNS
Returns true on success, or false if the supplied parameters were incorrect.
See also:
Structured Logging <>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
| February 10, 2026 | 1.30.7 |
