logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dmmp_context_log_func_set - Set log handler function.

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. If set to NULL, all log will be ignored.

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.

Name

       dmmp_context_log_func_set - Set log handler function.

Return

       void

March 2018                                  dmmp_context_log_func_set               dmmp_context_log_func_set(3)

Synopsis

voiddmmp_context_log_func_set(structdmmp_context*ctx,void(*log_func)(structdmmp_context*ctx,intpriority,constchar*file,intline,constchar*func_name,constchar*format,va_listargs));

See Also