NNG_LOG_SET_LEVEL(3)
π NNG_LOG_SET_LEVEL(3) π
okay so bestie, this is a page from the NNG Reference Manual and it's literally all about telling NNG how chatty you want your logs to be. sit down, grab a boba, we're doing logging πΈ
β¨ NAME β¨
nng_log_set_level β set minimum level for logging messagse π«Ά
ngl the original page has a lil typo in it ("messagse") and I am not fixing it, because keeping every detail is the whole vibe. iconic, honestly. π
π 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;
void nng_log_set_level(nng_log_level level);
likeβ¦ look at that enum. the numbers literally jump from 0 to 3 and it does NOT care. main character energy fr fr π
π DESCRIPTION π
so nng_log_set_level is the function you call when you want to set the minimum severity to level for processing log messages. that's the whole job. she's a filter and she knows it π
here's the tea: any messages with a less severe rating are not processed and are simply discarded. gone. not even a ghost. π
- want absolute silence? use
NNG_LOG_NONEto suppress all log messages π€« - want literally everything? use
NNG_LOG_DEBUGto receive all log messages π£οΈπ₯
and remember bestie, NNG_LOG_NONE is = 0 and the comment says it's // used for filters only, NNG suppresses these β so it's a filter vibe, not a "print a message at level NONE" vibe. iykyk β¨
π¦ SEE ALSO π¦
(yes bestie it references itself, that's just the level of self-love we're aspiring to π«Ά)
okay that's the whole page, hope it slayed for you π stay logged, stay filtered, and may your severity always be exactly what you asked for. this was NNG_LOG_SET_LEVEL(3), dated 2026-06-30, and it lives in the NNG Reference Manual. mwah. πβ¨πΈ
π¦ 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