【问题标题】:How to enable XMPPFramework to print raw XML on console如何启用 XMPPFramework 在控制台上打印原始 XML
【发布时间】:2015-03-30 10:44:41
【问题描述】:

我想知道如何启用 XMPPFramework (https://github.com/robbiehanson/XMPPFramework) 在控制台上打印原始 XML,例如;喜欢这个。

SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='dev.doctome.org'>

【问题讨论】:

    标签: ios objective-c xmpp xmppframework


    【解决方案1】:

    我从下面的帖子中得到了答案。

    https://groups.google.com/forum/#!topic/xmppframework/6cpoAHKBpNg

    基本上你必须添加带有XMPP_LOG_FLAG_SEND_RECV标志的记录器。

    [DDLog addLogger:[DDTTYLogger sharedInstance] withLogLevel:XMPP_LOG_FLAG_SEND_RECV];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 2016-03-30
      • 1970-01-01
      • 1970-01-01
      • 2012-10-13
      • 2013-06-15
      相关资源
      最近更新 更多