NNG_LOG_GET_LEVEL(3)
β¨ nng_log_get_level(3) β¨
okay bestie, pull up a seat π this one is from the NNG Reference Manual, and it's genuinely short and sweet. It's nng_log_get_level(3) β yes, the name is the whole vibe: we're getting a level, not setting it. iykyk.
π NAME π
nng_log_get_level β get the minimum level for logging messages π
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
typedef enum nng_log_level {
NNG_LOG_NONE = 0, // used for filters only, NNG suppresses these
NNG_LOG_ERR = 3,
NNG_LOG_WARN = 4,
NNG_LOG_NOTICE = 5,
NNG_LOG_INFO = 6,
NNG_LOG_DEBUG = 7
} nng_log_level;
nng_log_level nng_log_set_level(void);
not me staring at that last line π it literally says nng_log_set_level in the synopsis of the get page. bestie, that is what the page says, so that is what we're writing down, character for character. no editing, no cap. π
π DESCRIPTION π
so the nng_log_get_level function is the one you call to find out the minimum severity level that's actually being processed for log messages. it's giving "vibe check but for log levels" β¨
and the intended use case? oh she's practical. it's so you can skip the expensive stuff β all those operations you'd only ever do to build up debugging info for the logs β when that logged content would just get thrown away anyway. no point doing all that work just to have it discarded, bestie. that's wasted main character energy. π«Ά
so: ask first, then decide whether it's even worth building the message. iconic behavior honestly.
π¦ SEE ALSO π¦
and that's the whole page, bestie!! short, sweet, slayed. this was nng_log_get_level(3) from the NNG Reference Manual, dated 2026-06-30. go forth and check your log levels before you do the expensive thing πβοΈ
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms