{
    "content": [
        {
            "type": "text",
            "text": "# dmmp_context_log_func_set(3) (man)\n\n**Summary:** dmmpcontextlogfuncset - Set log handler function.\n\n**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));\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **ARGUMENTS** (5 lines)\n- **DESCRIPTION** (4 lines)\n- **RETURN** (5 lines)\n\n## Full Content\n\n### NAME\n\ndmmpcontextlogfuncset - Set log handler function.\n\n### SYNOPSIS\n\nvoid  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\n### ARGUMENTS\n\nctx         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\n### DESCRIPTION\n\nSet 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\n### RETURN\n\nvoid\n\n\n\nMarch 2018                            dmmpcontextlogfuncset         dmmpcontextlogfuncset(3)\n\n"
        }
    ],
    "structuredContent": {
        "command": "dmmp_context_log_func_set",
        "section": "3",
        "mode": "man",
        "summary": "dmmpcontextlogfuncset - Set log handler function.",
        "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));",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "ARGUMENTS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "RETURN",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}