]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Logging: Add debug logging categories
authorKevin Harwell <kharwell@digium.com>
Fri, 28 Aug 2020 21:32:37 +0000 (16:32 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 2 Oct 2020 17:58:18 +0000 (12:58 -0500)
commit56028426de0692e8e36167251053c91b96e97c41
tree8f7859ba9fedca7779d1b1b156da3e0ed83b34c3
parent51cba591e305672c9576ec870166a5cfecb36641
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
doc/CHANGES-staging/logger_category.txt [new file with mode: 0644]
include/asterisk/logger_category.h [new file with mode: 0644]
include/asterisk/rtp_engine.h
include/asterisk/stun.h
main/cli.c
main/logger.c
main/logger_category.c [new file with mode: 0644]
main/rtp_engine.c
main/stun.c
res/res_pjsip_sdp_rtp.c
res/res_rtp_asterisk.c