PJSUA:应用程序控制台上调试信息的详细程度 [英] PJSUA: verbosity of debug information on the application console

查看:131
本文介绍了PJSUA:应用程序控制台上调试信息的详细程度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆