DOKK / manpages / debian 13 / libmongoc-doc / mongoc_structured_log_get_named_component.3.en
MONGOC_STRUCTURED_LOG_GET_NAMED_COMPONENT(3) libmongoc MONGOC_STRUCTURED_LOG_GET_NAMED_COMPONENT(3)

bool
mongoc_structured_log_get_named_component (const char *name, mongoc_structured_log_component_t *out);


Look up a component by name. Case insensitive.

  • name: A name to look up as a log component.
  • out: On success, the corresponding mongoc_structured_log_component_t is written here.

If the component name is known, returns true and writes the component enum to *out. If the component name is not known, returns false and does not write *out.

SEE ALSO:

Structured Logging



MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4