---
name: "mongoc_structured_log_get_named_component"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_structured_log_get_named_component"
---

# mongoc\_structured\_log\_get\_named\_component(3)

## SYNOPSIS

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

Look up a component by name. Case insensitive.

## PARAMETERS

- •

  **name**: A name to look up as a log component.

- •

  **out**: On success, the corresponding *mongoc\_structured\_log\_component\_t* is written here.

## RETURNS

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
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
