---
name: "mongoc_structured_log_get_level_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_level_name"
---

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

## SYNOPSIS

```
const char *
mongoc_structured_log_get_level_name (mongoc_structured_log_level_t level);
```

## PARAMETERS

- •

  **level**: Log level as a *mongoc\_structured\_log\_level\_t*.

## RETURNS

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

**SEE ALSO:**

```
Structured Logging
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
