KNET_LOG_...GLEVEL_ID(3)

πŸ’– KNET_LOG_GET_LOGLEVEL_ID πŸ’–

okay bestie, welcome to the Kronosnet Programmer's Manual β€” yes you read that right, we're in section 3 of the manual, the library functions section, and today's main character is knet_log_get_loglevel_id. πŸŽ€

She's a tiny little helper. She does one (1) thing. But she does it flawlessly, and honestly? iconic behavior. ✨


🌸 NAME 🌸

knet_log_get_loglevel_id β€” get a logging level ID from its name, fr fr. that's the whole job. that's the assignment. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libknet.h>

uint8_t knet_log_get_loglevel_id(
    const char   *name
);

look at her. one parameter. no drama. no cap. 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

knet_log_get_loglevel_id

okay so real talk, that's literally the entire description in the original and I'm not about to invent lore that isn't there β€” the vibe check says: this function takes the name of a log level and hands you back its internal log level ID. that's it. she's a translator. a little linguist. a baddie who speaks both "human string" and "internal integer". 🌈

you feed her a name, she gives you the ID. periodt. ⭐


πŸ”₯ RETURN VALUE πŸ”₯

  • returns the internal log level ID ✨
  • or KNET_LOG_ERR for invalid names πŸ’€
not me passing a typo'd name and getting KNET_LOG_ERR back 😭 bestie, if you get KNET_LOG_ERR, that name was not it. double-check your spelling before you blame her, she's never wrong. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, assembled. every single one, no skipping, no summarising, we stan a complete roster 🧚:


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


and that's the whole page, bestie!! πŸ’– this lil manpage came from the kronosnet project, dated 2026-07-20 β€” go forth, log your levels, spell your names correctly, and remember: if the name's invalid you're getting KNET_LOG_ERR and she will not be apologising for it. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from