| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE docs SYSTEM "appdocsxml.dtd"> |
| 3 | <?xml-stylesheet type="text/xsl" href="appdocsxml.xslt"?> |
| 4 | <docs xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 5 | <function name="LOG_GROUP" language="en_US"> |
| 6 | <since> |
| 7 | <version>18.21.0</version> |
| 8 | <version>20.6.0</version> |
| 9 | <version>21.1.0</version> |
| 10 | </since> |
| 11 | <synopsis> |
| 12 | Set the channel group name for log filtering on this channel |
| 13 | </synopsis> |
| 14 | <syntax> |
| 15 | <parameter name="group" required="false"> |
| 16 | <para>Channel log group name. Leave empty to remove any existing group membership.</para> |
| 17 | <para>You can use any arbitrary alphanumeric name that can then be used by the |
| 18 | "logger filter changroup" CLI command to filter dialplan output by group name.</para> |
| 19 | </parameter> |
| 20 | </syntax> |
| 21 | <description> |
| 22 | <para>Assign a channel to a group for log filtering.</para> |
| 23 | <para>Because this application can result in dialplan execution logs |
| 24 | being suppressed (or unsuppressed) from the CLI if filtering is active, |
| 25 | it is recommended to call this as soon as possible when dialplan execution begins.</para> |
| 26 | <para>Calling this multiple times will replace any previous group assignment.</para> |
| 27 | <example title="Associate channel with group test"> |
| 28 | exten => s,1,Set(LOG_GROUP()=test) |
| 29 | same => n,NoOp() ; if a logging call ID group filter name is enabled but test is not included, you will not see this |
| 30 | </example> |
| 31 | <example title="Associate channel with group important"> |
| 32 | exten => s,1,Set(LOG_GROUP()=important) |
| 33 | same => n,Set(foo=bar) ; do some important things to show on the CLI (assuming it is filtered with important enabled) |
| 34 | same => n,Set(LOG_GROUP()=) ; remove from group important to stop showing execution on the CLI |
| 35 | same => n,Wait(5) ; do some unimportant stuff |
| 36 | </example> |
| 37 | </description> |
| 38 | <see-also> |
| 39 | <ref type="application">Log</ref> |
| 40 | </see-also> |
| 41 | </function> |
| 42 | <managerEvent language="en_US" name="LogChannel"> |
| 43 | <managerEventInstance class="EVENT_FLAG_SYSTEM"> |
| 44 | <since> |
| 45 | <version>16.24.0</version> |
| 46 | <version>18.10.0</version> |
| 47 | <version>19.2.0</version> |
| 48 | </since> |
| 49 | <synopsis>Raised when a logging channel is re-enabled after a reload operation.</synopsis> |
| 50 | <syntax> |
| 51 | <parameter name="Channel"> |
| 52 | <para>The name of the logging channel.</para> |
| 53 | </parameter> |
| 54 | </syntax> |
| 55 | </managerEventInstance> |
| 56 | <managerEventInstance class="EVENT_FLAG_SYSTEM"> |
| 57 | <since> |
| 58 | <version>16.24.0</version> |
| 59 | <version>18.10.0</version> |
| 60 | <version>19.2.0</version> |
| 61 | </since> |
| 62 | <synopsis>Raised when a logging channel is disabled.</synopsis> |
| 63 | <syntax> |
| 64 | <parameter name="Channel"> |
| 65 | <para>The name of the logging channel.</para> |
| 66 | </parameter> |
| 67 | </syntax> |
| 68 | </managerEventInstance> |
| 69 | </managerEvent> |
| 70 | </docs> |