|
SYNOPSIStypedef enum {
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. FUNCTIONSmongoc_structured_log_get_component_name()Synopsisconst char * mongoc_structured_log_get_component_name (mongoc_structured_log_component_t component); Parameters
ReturnsIf 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 mongoc_structured_log_get_named_component()Synopsisbool mongoc_structured_log_get_named_component (const char *name, mongoc_structured_log_component_t *out); Look up a component by name. Case insensitive. Parameters
ReturnsIf 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 AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|