当网页版本的WebRTC程序出了各种问题的时候,你可以想了解WebRTC底层出了什么问题,这个时候我们就要看看WebRTC的日志了,下面提WebRTC日志输出方法:
Windows
在命令行下输入:
1, cd C:\Program Files (x86)\Google\Chrome\Application\
2, chrome.exe --enable-logging --v=1
log在 C:\Users\zengjianbin\AppData\Local\Google\Chrome\User Data\chrome_debug.log中
Mac
在命令行下输入:
1,export CHROME_LOG_FILE=~/Documents/chrome_debug.log
2, /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-logging --v=1 启动chrome
log在第一步指定的文件中