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
parent
51cba591
No related branches found
No related tags found
Showing
- doc/CHANGES-staging/logger_category.txt 18 additions, 0 deletionsdoc/CHANGES-staging/logger_category.txt
- include/asterisk/logger_category.h 178 additions, 0 deletionsinclude/asterisk/logger_category.h
- include/asterisk/rtp_engine.h 79 additions, 0 deletionsinclude/asterisk/rtp_engine.h
- include/asterisk/stun.h 25 additions, 0 deletionsinclude/asterisk/stun.h
- main/cli.c 50 additions, 1 deletionmain/cli.c
- main/logger.c 5 additions, 0 deletionsmain/logger.c
- main/logger_category.c 324 additions, 0 deletionsmain/logger_category.c
- main/rtp_engine.c 68 additions, 0 deletionsmain/rtp_engine.c
- main/stun.c 42 additions, 19 deletionsmain/stun.c
- res/res_pjsip_sdp_rtp.c 14 additions, 9 deletionsres/res_pjsip_sdp_rtp.c
- res/res_rtp_asterisk.c 232 additions, 171 deletionsres/res_rtp_asterisk.c
Loading