默认
发表评论 1
想开发IM:买成品怕坑?租第3方怕贵?找开源自已撸?尽量别走弯路了... 找站长给点建议
[已回复] 如何去掉MobileIMSDK服务器端的Debug打印
我已经设置了
QoS4SendDaemonS2C.DEBUG = false;
QoS4ReciveDaemonC2S.DEBUG = false;
UserProcessor.DEBUG = false;

服务端还是有很多打印
比如
[DEBUG] - [11:53:55.765]Event MESSAGE_SENT has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:53:58.774]Firing a MESSAGE_RECEIVED event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:53:58.775]Event MESSAGE_RECEIVED has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:53:58.775]Firing a MESSAGE_SENT event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:53:58.775]Event MESSAGE_SENT has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:54:01.778]Firing a MESSAGE_RECEIVED event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:54:01.779]Event MESSAGE_RECEIVED has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:54:01.779]Firing a MESSAGE_SENT event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:54:01.779]Event MESSAGE_SENT has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:54:04.796]Firing a MESSAGE_RECEIVED event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:54:04.797]Event MESSAGE_RECEIVED has been fired for session 1 | (IoFilterEvent^fire:117)
[DEBUG] - [11:54:04.797]Firing a MESSAGE_SENT event for session 1 | (IoFilterEvent^fire:68)
[DEBUG] - [11:54:04.797]Event MESSAGE_SENT has been fired for session 1 | (IoFilterEvent^fire:117)

请问有没有什么设置能关掉这种无休止的打印呢。

即时通讯网 - 即时通讯开发者社区! 来源: - 即时通讯开发者社区!

标签:MobileIMSDK
上一篇:[已回复] 请求MobileIMSDK的服务端如何发送信息到客服端?下一篇:请问知道怎么转金币吗?需要点金币下载MobileIMSDK iOS的demo

本帖已收录至以下技术专辑

推荐方案
评论 1
如果只是想去掉上面的日志输出,去找到MINA2的官方源码IoFilterEvent.java,把它里面的debug语句屏蔽一下,这是MINA的一个Bug,要么去掉源码、要么关闭整个Log4j。

关闭Log4j的方法,你去查一下Log4j的文档,只要把日志输出等级改成最高级,就不会输出了。

IoFilterEvent.java的源码我可以附件给你:
IoFilterEvent.java (4.09 KB , 下载次数: 10 )
打赏楼主 ×
使用微信打赏! 使用支付宝打赏!

返回顶部