目前所支持的日志调试参数有如下几种:
[Debug Settings]
AutoUploadLogInfo=1
SaveLogRootDir=
OutputThreadStatus=0
OutputRecordTask=0
PS:0表示关闭(默认),1表示打开
1.AutoUploadLogInfo--服务器端收集客户端日志参数;--请参阅《客户端日志详解》
2.SaveLogRootDir--服务器端收集到客户端日志信息存放的目录,Linux环境下注意权限问题;--默认存放目录:AnyChatCoreSDK_Win32_r4509\bin\server\clientlog\
PS:这个参数目前不生效,如SaveLogRootDir=e:\anychat\record
3.OutputThreadStatus--监控线程状态,线程信息如下图1所示:
![](https://box.kancloud.cn/01a5e6381ddf066712bdaa71f8875af6_988x213.png)
:-: 图1-线程状态
3.1,UDP Read, read:0(0MByte), error:0, functime(0.005747, 0.010674), dealtime(0.000821, 0.004926);
3.1.1,UDP Read--待补充...
3.1.2,read:0(0MByte)--
3.1.3,error:0--
3.1.4,functime(0.005747, 0.010674)--
3.1.5,dealtime(0.000821, 0.004926)--
3.2,TCP, thread:0x23ac, new user:0, RecvPackNum:0, RecvPackSize:0 kByte, map:0, online:0;
3.2.1,hread:0x23ac--
3.2.2,new user:0--
3.2.3,RecvPackNum:0--
3.2.4,RecvPackSize:0 kByte--
3.2.5,map:0--
3.2.6,online:0--
3.3,5-Stream Buffer, item:0, resend:0, delete:0, StreamItemPool(0, 0), SequencePool(0, 0), MediaPackPool(0, 0), packloss:0, ack:0, req:0, fill:0;
3.3.1,5-Stream Buffer--
3.3.2,item:0--
3.3.3,resend:0--
3.3.4,delete:0--
3.3.5,StreamItemPool(0, 0)--
3.3.6,SequencePool(0, 0)--
4,OutputRecordTask--输出录像日志信息;---服务器合成录像,输出日志如下图2
![](https://box.kancloud.cn/7f45b439bd1264ef46b87645b9867c7e_894x69.png)
:-: 图2-服务器合成录像日志
4.1,Received start server record command, userid:-3, flags:0x1a37--接收到服务器录制的命令,用户ID(发起录制方)是3,标识为0x1a37;
4.2,Received stop server record command---接收到服务器录制停止的命令;
4.3,OnServerRecordFinish, userid:-3, 2015-04-02\16-17-33-391_9527_41.mp4, elapse:23, flags:0x1a37);
4.3.1,OnServerRecordFinish---服务器录制结束;
4.3.2,2015-04-02\16-17-33-391_9527_41.mp4---录像文件名称,格式为mp4;
4.3.3,elapse:23---录像文件时常;
4.3.4,flags:0x1a37---标识为0x1a37;
4.3.5,userid:-3---发起录制方ID是3;