]> 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)
committerKevin Harwell <kharwell@digium.com>
Mon, 12 Oct 2020 15:50:10 +0000 (10:50 -0500)
commite051806e80be7ac1da55def1fb1ddc5b85d6fbec
tree3f71e0a74ea04152c59cccd99f8420b93bb1c76d
parent0b835f21563c33f1aa0b3793e8617b2d8fc81de8
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
(cherry picked from commit 56028426de0692e8e36167251053c91b96e97c41)
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