iscsi_context_log_func_set(3) API Manual iscsi_context_log_func_set(3)

iscsi_context_log_func_set - Set log handler function.

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));

Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert.
Pointer of log handler function.

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.

void

iscsi_context_log_func_set June 2023