LOC_GET_LOG_PRIORITY(3)

πŸ’… LOC_GET_LOG_PRIORITY(3) β€” the loc_get_log_priority tea β˜•

okay so bestie, welcome to the libloc section 3 manual, page LOC_GET_LOG_PRIORITY(3). yeah the header literally just says that twice, we love a self-referential icon πŸ’–


✨ NAME ✨

loc_get_log_priority β€” grabs the log level of a libloc context πŸŽ€

basically: you got a context, it's got a log priority, this function tells you what it is. that's the whole vibe.


🌸 SYNOPSIS 🌸

#include <libloc/libloc.h>

int loc_get_log_priority(struct loc_ctx* ctx);

one include, one function, zero drama. the way that int just returns things 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So. You call this bad boy and it returns the log priority of the given context. That's it, that's the function. Main character energy, honestly.

The integer it hands back is a valid syslog log level, exactly as defined in syslog(3) β€” so like, the real deal, not some made-up number. iykyk πŸ”₯

And the default value? LOG_ERR. That's the starting point before anybody messes with it, no cap.

lowkey the chillest function in the whole library and I'm obsessed with her for it πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

  • libloc(3) β€” go read the parent page bestie, it's giving context (literally) πŸ’œ

πŸŽ€ AUTHORS πŸŽ€

Michael Tremer β€” an absolute legend, we stan 🌟


okay so that's the whole page β€” and for the sign-off, the footer is honestly just LOC_GET_LOG_PRIORITY(3) all over again πŸ™ˆ no version string, no date stamp, nothing extra to report. so here's your cute little goodbye: go forth, check your log priority, and slay βœ¨πŸ’–πŸ¦‹

πŸ“¦ where this page comes from