mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Logging: Add debug logging categories
Added debug logging categories that allow a user to output debug information based on a specified category. This lets the user limit, and filter debug output to data relevant to a particular context, or topic. For instance the following categories are now available for debug logging purposes: dtls, dtls_packet, ice, rtcp, rtcp_packet, rtp, rtp_packet, stun, stun_packet These debug categories can be enable/disable via an Asterisk CLI command. While this overrides, and outputs debug data, core system debugging is not affected by this patch. Statements still output at their appropriate debug level. As well backwards compatibility has been maintained with past debug groups that could be enabled using the CLI (e.g. rtpdebug, stundebug, etc.). ASTERISK-29054 #close Change-Id: I6e6cb247bb1f01dbf34750b2cd98e5b5b41a1849
This commit is contained in:
committed by
George Joseph
parent
51cba591e3
commit
56028426de
18
doc/CHANGES-staging/logger_category.txt
Normal file
18
doc/CHANGES-staging/logger_category.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
Subject: Core
|
||||
|
||||
Added debug logging categories that allow a user to output debug information
|
||||
based on a specified category. This lets the user limit, and filter debug
|
||||
output to data relevant to a particular context, or topic. For instance the
|
||||
following categories are now available for debug logging purposes:
|
||||
|
||||
dtls, dtls_packet, ice, rtcp, rtcp_packet, rtp, rtp_packet, stun, stun_packet
|
||||
|
||||
These debug categories can be enable/disable via an Asterisk CLI command:
|
||||
|
||||
core set debug category <category>[:<sublevel>] [category[:<sublevel] ...]
|
||||
core set debug category off [<category> [<category>] ...]
|
||||
|
||||
If no sub-level is associated all debug statements for a given category are
|
||||
output. If a sub-level is given then only those statements assigned a value
|
||||
at or below the associated sub-level are output.
|
||||
|
Reference in New Issue
Block a user