iscsi_context_log_func_set - Set log handler function.
Contents
Arguments
ctx Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated
by assert.
log_func Pointer of log handler function.
Description
Set custom log handler. The log handler will be invoked when log message is equal or more important(less
value) than log priority setting. Please check manpage libopeniscsiusr.h(3) for detail usage.
Name
iscsi_context_log_func_set - Set log handler function.
Return
void
July 2025 iscsi_context_log_func_set iscsi_context_log_func_set(3)
Synopsis
voidiscsi_context_log_func_set(structiscsi_context*ctx,void(*log_func)(structiscsi_context*ctx,intpriority,constchar*file,intline,constchar*func_name,constchar*format,va_listargs));
