---
name: "mongoc_structured_log_get_component_name"
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_component_name"
---

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

## SYNOPSIS

```
const char *
mongoc_structured_log_get_component_name (mongoc_structured_log_component_t component);
```

## PARAMETERS

- •

  **component**: Log component as a *mongoc\_structured\_log\_component\_t*.

## RETURNS

If the component is known, returns a pointer to a constant string that should not be freed. If the component has no known name, returns NULL.

**SEE ALSO:**

```
Structured Logging
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
