{
    "mode": "man",
    "parameter": "dmmp_context_log_func_set",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/dmmp_context_log_func_set/3/json",
    "generated": "2026-05-30T07:10:06Z",
    "synopsis": "void  dmmpcontextlogfuncset (struct dmmpcontext *ctx, void (*logfunc) (struct dmmpcon‐‐\ntext *ctx, int priority, const char *file, int line, const char *funcname, const char  *for‐‐\nmat, valist args));",
    "sections": {
        "NAME": {
            "content": "dmmpcontextlogfuncset - Set log handler function.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "void  dmmpcontextlogfuncset (struct dmmpcontext *ctx, void (*logfunc) (struct dmmpcon‐‐\ntext *ctx, int priority, const char *file, int line, const char *funcname, const char  *for‐‐\nmat, valist args));\n",
            "subsections": []
        },
        "ARGUMENTS": {
            "content": "ctx         Pointer  of 'struct dmmpcontext'.  If this pointer is NULL, your program will be\nterminated by assert.\n\nlogfunc    Pointer of log handler function. If set to NULL, all log will be ignored.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Set custom log handler. The log handler will be invoked when log message is equal or more im‐\nportant(less  value) than log priority setting.  Please check manpage libdmmp.h(3) for detail\nusage.\n",
            "subsections": []
        },
        "RETURN": {
            "content": "void\n\n\n\nMarch 2018                            dmmpcontextlogfuncset         dmmpcontextlogfuncset(3)",
            "subsections": []
        }
    },
    "summary": "dmmpcontextlogfuncset - Set log handler function.",
    "flags": [],
    "examples": [],
    "see_also": []
}