Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_STRUCTURED_LOG_LEVEL_T(3)    libmongoc	MONGOC_STRUCTURED_LOG_LEVEL_T(3)

SYNOPSIS
	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.

FUNCTIONS
   mongoc_structured_log_get_level_name()
   Synopsis
	const char *
	mongoc_structured_log_get_level_name (mongoc_structured_log_level_t level);

   Parameters
     * level: Log level as a mongoc_structured_log_level_t.

   Returns
     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

   mongoc_structured_log_get_named_level()
   Synopsis
	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.

   Parameters
     * name: A name to look up as a log level.

     * out: On success, the corresponding mongoc_structured_log_level_t is writ-
       ten here.

   Returns
     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

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026	MONGOC_STRUCTURED_LOG_LEVEL_T(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_structured_log_level_t&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help