<p></p>
<p>thanks for the feedback, I've added the logic for <code>HAVE_PTHREAD</code> and I also decided to stop using the <code>proc!id</code> notation and use nested objects instead, here is an example from my testing:</p>
<pre><code>$ python3 -m json.tool /tmp/k1.json 
{
    "time": "2021-08-27T23:38:46.639132214Z",
    "proc": {
        "id": "56513"
    },
    "pri": "CRITICAL",
    "subsys": "core",
    "file": {
        "name": "core/cfg.y",
        "line": 3686
    },
    "native": {
        "function": "yyerror_at"
    },
    "msg": "parse error in config file foo/kamailio/kamailio/./misc/examples/ims/pcscf/kamailio.cfg, line 481, column 92: unknown command, missing loadmodule?\n\n",
    "pname": "kamailio",
    "appname": "kamailio",
    "hostname": "some-host.example.org"
}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2826#issuecomment-907528664">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPBVBWMVIGNZFQUS2DT7AP6DANCNFSM5CIKTDLQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZPRVL24PXVPVJN6CZLT7AP6DA5CNFSM5CIKTDL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGYL4TWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2826#issuecomment-907528664",
"url": "https://github.com/kamailio/kamailio/pull/2826#issuecomment-907528664",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>