GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_STRUCTURED_LOG_COMPONENT_T(3) libmongoc MONGOC_STRUCTURED_LOG_COMPONENT_T(3)

typedef enum {

MONGOC_STRUCTURED_LOG_COMPONENT_COMMAND = 0,
MONGOC_STRUCTURED_LOG_COMPONENT_TOPOLOGY = 1,
MONGOC_STRUCTURED_LOG_COMPONENT_SERVER_SELECTION = 2,
MONGOC_STRUCTURED_LOG_COMPONENT_CONNECTION = 3, } mongoc_structured_log_component_t;


mongoc_structured_log_component_t enumerates the structured logging components. Applications should never rely on having an exhaustive list of all log components. Instead, use mongoc_structured_log_opts_set_max_level_for_all_components() to set a default level if needed.

const char *
mongoc_structured_log_get_component_name (mongoc_structured_log_component_t component);


component: Log component as a mongoc_structured_log_component_t.

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



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


Look up a component by name. Case insensitive.

  • name: A name to look up as a log component.
  • out: On success, the corresponding mongoc_structured_log_component_t is written here.

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



SEE ALSO:

Structured Logging



MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.