<p><a href="https://gerrit.asterisk.org/c/asterisk/+/14405">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14405/2/res/res_pjsip_exten_state.c">File res/res_pjsip_exten_state.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/14405/2/res/res_pjsip_exten_state.c@419">Patch Set #2, Line 419:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">                   ast_log(LOG_NOTICE, "Endpoint '%s' state subscription failed: "<br>                             "Extension '%s' does not exist in context '%s' or has no associated hint\n",<br>                                ast_sorcery_object_get_id(endpoint), resource, context);<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I agree that having the ability to control at a finer level log messages would be nice, as log level […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Hi Joshua,</p><p style="white-space: pre-wrap; word-wrap: break-word;">Fair enough.  There is definitely a slippery slope, we could literally wind up with a setting for every single log line.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Sounds like I'm setting myself up for a big ole project...</p><p style="white-space: pre-wrap; word-wrap: break-word;">In my own applications, we have a system-wide unique log 'token'  For example, I would call this log token LOG_PJSIP_SUBSCRIPTION_FAILED.  No other log line anywhere in the system would use this token other than for logging the same exact issue.</p><p style="white-space: pre-wrap; word-wrap: break-word;">There are quite a few benefits for this.  </p><ul><li>Future multi-language support for console logging</li><li>Documentation: Users can search the wiki for a matching log token and find the reason for this log, and any other information regarding this log.</li><li>Fully configurable logging for all users,  turn on and off bitwise flags as needed for tracing/troubleshooting</li><li>Mapping into a new flag-based structure would not pollute the configuration namespaces for which modules the logging comes from</li><li>_ Centralized configuration (probably logger.conf) to turn on and off individual log tokens</li></ul></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14405">change 14405</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/14405"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I5dff21c3c8ac3a3e3aefbd89053581fb90bc7018 </div>
<div style="display:none"> Gerrit-Change-Number: 14405 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-CC: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-CC: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 12 May 2020 15:12:34 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Comment-In-Reply-To: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Comment-In-Reply-To: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>