NNG_LOG_SET_LEVEL(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸ’– 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_NONE to suppress all log messages 🀫
  • want literally everything? use NNG_LOG_DEBUG to 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