dmmp_context_log_func_set man page

dmmp_context_log_func_set — Set log handler function.

Synopsis

void dmmp_context_log_func_set (struct dmmp_context *ctx, void (*log_func) (struct dmmp_context *ctx, int priority,  const char *file, int line, const char *func_name,  const char *format, va_list args));

Arguments

ctx

Pointer of 'struct dmmp_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 libdmmp.h(3) for detail usage.

Return

void

Info

dmmp_context_log_func_set December 2017 Device Mapper Multipath API - libdmmp Manual