iscsi_context_log_priority_set(3)

πŸ’… iscsi_context_log_priority_set(3) β€” bestie, let's talk log priorities ✨

Okay so this page lives in the API Manual, and it's all about one tiny little function that decides how chatty the library is allowed to be with you. It's giving "volume knob for logging" energy, and honestly? Iconic. πŸŽ€


🌸 NAME 🌸

iscsi_context_log_priority_set β€” literally just Set log priority. That's the whole assignment, no cap. 🫢


✨ SYNOPSIS ✨

void iscsi_context_log_priority_set (struct iscsi_context *ctx, int
priority);

Two args, returns nothing. She's low-maintenance like that. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the pointer of 'struct iscsi_context'. Sounds chill until you hear this part: if this pointer is NULL, your program will be terminated by assert. 😭 Like, not a gentle error, not a warning β€” terminated. So please, bestie, don't hand her a NULL. Do your vibe check first. πŸ’€
  • priority β€” an int, and it's the log priority. Basically the threshold for what's allowed to slide into your log handler function. πŸ“

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜•: when the library generates a log message, only an equal or more important (less value) message will be forwarded to the log handler function. Read that again β€” less value means more important. I know. It's giving "the smaller the number, the bigger the main character energy". πŸ‘‘

Valid log priority values are, and I'm listing every single one because we do not skip:

  • LIBISCSI_LOG_PRIORITY_ERROR β€” 3
  • LIBISCSI_LOG_PRIORITY_WARNING β€” 4
  • LIBISCSI_LOG_PRIORITY_INFO β€” 6
  • LIBISCSI_LOG_PRIORITY_DEBUG β€” 7

So like, if you set it to 4, you're getting warnings and errors, and all the little info/debug girlies get left on read. Set it to 7 and everything comes through. 🌈


⭐ RETURN ⭐

void β€” she returns nothing. No value, no drama, no "it depends". Just vibes and a side effect. 🧚


πŸ’œ Friendly reminder from your girl: ctx being NULL = assert = program go bye-bye. That's a hard stop, not a suggestion. πŸ™ˆ

okay that's the whole page, you ate that πŸŽ€

Sign-off time, because this page has a footer and we respect the footer: the source/version line reads iscsi_context_log_priiscsi_context_log_priority_set(3) β€” yes it's a little glitched out and smushed together, that's just how she came out of the box, don't come for her πŸ’€ β€” and it's dated September 2026. Periodt. πŸ’–

πŸ“¦ where this page comes from