FreeBSD Manual Pages
MONGOC_STRUCTURED_LOG_ENTRY_T(3) libmongoc MONGOC_STRUCTURED_LOG_ENTRY_T(3) SYNOPSIS typedef struct mongoc_structured_log_entry_t mongoc_structured_log_entry_t; mongoc_structured_log_entry_t is an opaque structure which represents the temporary state of an in-progress log entry. It can only be used during a mongoc_structured_log_func_t, it is not valid after the log handler returns. Use the functions below to query individual aspects of the log entry. FUNCTIONS mongoc_structured_log_entry_get_component() Synopsis mongoc_structured_log_component_t mongoc_structured_log_entry_get_component (const mongoc_structured_log_entry_t *entry); Parameters • entry: A mongoc_structured_log_entry_t pointer. Returns The mongoc_structured_log_component_t associated with this log entry. SEE ALSO: Structured Logging mongoc_structured_log_entry_get_level() Synopsis mongoc_structured_log_level_t mongoc_structured_log_entry_get_level (const mongoc_structured_log_entry_t *entry); Parameters • entry: A mongoc_structured_log_entry_t pointer. Returns The mongoc_structured_log_level_t associated with this log entry. SEE ALSO: Structured Logging mongoc_structured_log_entry_get_message_string() 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 struc- tured 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 mongoc_structured_log_entry_message_as_bson() Synopsis bson_t * mongoc_structured_log_entry_message_as_bson (const mongoc_structured_log_entry_t *entry); Make a new copy, as a bson_t, of the log entry's standardized BSON rep- resentation. When possible, a log handler should avoid serializing log messages that will be discarded. Each call allocates an independent copy of the message that must be freed. Parameters • entry: A mongoc_structured_log_entry_t pointer. Returns A new allocated bson_t that must be freed with a call to bson_destroy(). SEE ALSO: Structured Logging SEE ALSO: Structured Logging AUTHOR MongoDB, Inc COPYRIGHT 2009-present, MongoDB, Inc. 1.30.2 Apr 12, 2025 MONGOC_STRUCTURED_LOG_ENTRY_T(3)
SYNOPSIS | FUNCTIONS | AUTHOR | COPYRIGHT
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_structured_log_entry_t&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
