PJSUA:应用程序控制台上调试信息的详细程度 [英] PJSUA: verbosity of debug information on the application console
问题描述
如果我使用PJSUA创建应用程序,则在pjsua_create()系统调用之后,大量调试信息将落入应用程序的控制台. 这在开发阶段很方便,但是会干扰程序的工作.
If I create an application using PJSUA, then after the pjsua_create() system call, a huge amount of debugging information falls onto the console of my application. This is convenient at the development stage, but after it interferes with the work with programm.
如何预定义此调试信息的详细程度?这样,当调用pjsua_create()时,就已经设置好了.
How can you predefine verbosity level of this debugging information? So that when pjsua_create() is called, it is already set.
感谢您提供丰富的答案.
Thank you for the informative answers.
推荐答案
您可以通过调用pj_log_set_level(int level)
(
You can do this by calling pj_log_set_level(int level)
(link) for example before pj_init()
. Also you can define PJ_LOG_MAX_LEVEL
const in config_site.h with value suited to your needs at compilation time.
这可能对您也很有趣(链接).
This also may be interesting for you (link).
这篇关于PJSUA:应用程序控制台上调试信息的详细程度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!