iscsi_context_log_func_set(3)
π¦ NAME π¦
iscsi_context_log_func_set β set log handler function. This is the iscsi_context_log_func_set(3) page from the API Manual, bestie, and itβs lowkey iconic π
β¨ SYNOPSIS β¨
void iscsi_context_log_func_set (struct iscsi_context *ctx, void
(*log_func) (struct iscsi_context *ctx, int priority, const char *file,
int line, const char *func_name, const char *format, va_list args));
π ARGUMENTS π
ctxβ pointer tostruct iscsi_context. Major warning, bestie: if this pointer isNULL, your program will be terminated byassert. Like, literally yeeted by an assert πlog_funcβ pointer to the log handler function. This is your custom logging bestie π«Ά
π DESCRIPTION π
Okay so the whole point is set custom log handler. That handler gets invoked when a log message is equal or more important(less value) than the log priority setting. For detail usage, please check the manpage libopeniscsiusr.h(3). Iykyk β¨
π RETURN π
void
Signed with API Manual energy, dated September 2026, and honoring that footer label iscsi_context_log_func_iscsi_context_log_func_set(3) β bye bestie, slay responsibly πππ¦
π¦ where this page comes from
- alpine 3.24: open-iscsi-doc 2.1.12-r0 Β· GPL-2.0-only
- arch rolling: open-iscsi 2.1.13-1 Β· GPL
- debian bookworm: libopeniscsiusr-dev 2.1.8-1+deb12u1 Β· GPL-2.0-or-later
- ubuntu stonking: libopeniscsiusr-dev 2.1.11-5ubuntu6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms