PJSUA: verbosity of debug information on the application console

烈酒焚心 提交于 2020-05-31 05:23:48

问题


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.

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.


回答1:


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).



来源:https://stackoverflow.com/questions/60278162/pjsua-verbosity-of-debug-information-on-the-application-console

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!