---
name: "mongoc_structured_log_entry_get_message_string"
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_entry_get_message_string"
---

# mongoc\_structured\_log\_entry\_get\_message\_string(3)

## SYNOPSIS

```
const char *
mongoc_structured_log_entry_get_message_string (const mongoc_structured_log_entry_t *entry);
```

## PARAMETERS

- •

  **entry**: A *mongoc\_structured\_log\_entry\_t* pointer.

## RETURNS

A string, guaranteed to be valid only during the lifetime of the structured log handler. It should not be freed or modified.

Identical to the value of the **message** key in the document returned by *mongoc\_structured\_log\_entry\_message\_as\_bson()*.

This is not a complete string representation of the structured log, but rather a standardized identifier for a particular log event.

**SEE ALSO:**

```
Structured Logging
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
