<p></p>
<blockquote>
<p>Thanks for the pull request. Just a few notes, other might be able to comment more:</p>
<pre><code>* instead of extending the core and adding another command line parameter for it, I think it should be implemented as a extension module, similar e.g. to log_systemd module
</code></pre>
</blockquote>
<p>This can make it more difficult to log unusual things during the startup phase before the modules are loaded.</p>
<p>There is already JSON support in core so I feel there is a good reason to keep the JSON code together in the same place.  The <code>log_systemd</code> code is much more different.</p>
<p>There is also a possibility that this code could replace the existing JSON code.  That would be easier to maintain but it would break compatibility for anybody who already depends on the old JSON schema.</p>
<blockquote>
<pre><code>* the code includes pthread.h and also calls pthread_self(), this should be not necessary as there is no pthread_create() in the core right now (Kamailio uses mainly the multi-process model)
</code></pre>
</blockquote>
<p>If any of the extension modules or libraries start threads then it is useful to capture the thread ID.  However, the field is optional, it can be completely removed and the rest of the pull request would still be valid without this.</p>

<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-899817075">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPHI2Y34PTAXQWX7DTT5F4PHANCNFSM5CIKTDLQ">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&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABO7UZL32X7VXBN3NGTOEHLT5F4PHA5CNFSM5CIKTDL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWRB44Y.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-899817075",
"url": "https://github.com/kamailio/kamailio/pull/2826#issuecomment-899817075",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>