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_LEVEL_T(3) libmongoc MONGOC_STRUCTURED_LOG_LEVEL_T(3)

typedef enum {

MONGOC_STRUCTURED_LOG_LEVEL_EMERGENCY = 0,
MONGOC_STRUCTURED_LOG_LEVEL_ALERT = 1,
MONGOC_STRUCTURED_LOG_LEVEL_CRITICAL = 2,
MONGOC_STRUCTURED_LOG_LEVEL_ERROR = 3,
MONGOC_STRUCTURED_LOG_LEVEL_WARNING = 4,
MONGOC_STRUCTURED_LOG_LEVEL_NOTICE = 5,
MONGOC_STRUCTURED_LOG_LEVEL_INFO = 6,
MONGOC_STRUCTURED_LOG_LEVEL_DEBUG = 7,
MONGOC_STRUCTURED_LOG_LEVEL_TRACE = 8, } mongoc_structured_log_level_t;


mongoc_structured_log_level_t enumerates the available log levels for use with structured logging.

const char *
mongoc_structured_log_get_level_name (mongoc_structured_log_level_t level);


level: Log level as a mongoc_structured_log_level_t.

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



bool
mongoc_structured_log_get_named_level (const char *name, mongoc_structured_log_level_t *out);


Look up a log level by name. Case insensitive.

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

If the level name is known, returns true and writes the level enum to *out. If the level 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.