<p> Attention is currently required from: Joshua Colp, Kevin Harwell. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/16222">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File apps/app_verbose.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/+/16222/comment/360f4e5f_7408144e">Patch Set #6, Line 139:</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;">    } else {<br>              int level = ast_logger_dynamic_level(args.level);<br>             if (level > -1) {<br>                  ast_log_dynamic_level(level, "%s\n", args.msg);<br>             } else {<br>                      ast_log(LOG_ERROR, "Unknown log level: '%s'\n", args.level);<br>                }<br>     }<br><br>   if (lnum > -1) {<br>           snprintf(context, sizeof(context), "@ %s", ast_channel_context(chan));<br>              snprintf(extension, sizeof(extension), "Ext. %s", ast_channel_exten(chan));<br><br>               ast_log(lnum, extension, ast_channel_priority(chan), context, "%s\n", args.msg);<br>    }<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Since this is for logging custom levels via the dialplan I think you'd want to log the extension, pr […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Hmm... personally, I was thinking to keep it more minimalist for the custom log, since I am already telling it what to log, and could add LOG(mylog,${CONTEXT},${EXTEN},${PRIORITY}) if I really wanted that. This isn't for Asterisk logging things, it's for the user logging things. My current custom logging solution, just using a subroutine and file, is relatively neat, with just logging the timestamp and the argument, so I wanted to make it as similar to that as possible, without adding noise to it.</p><p style="white-space: pre-wrap; word-wrap: break-word;">My other thought is to make this an option, but that might be kind of messy. If this was an option in logger.conf, I suppose it wouldn't make sense to read that every time Log was called.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If you still think I should add the context,exten,priority, I'll go ahead and do it, my thinking is just that for a custom log it doesn't automatically belong there.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16222">change 16222</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/+/16222"/><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: If082703cf81a436ae5a565c75225fa8c0554b702 </div>
<div style="display:none"> Gerrit-Change-Number: 16222 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Attention: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Attention: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 11 Aug 2021 22:20:03 +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: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>