title: xmppframework - enable log for send / receive
body: <p>I'm working on chat app using xmppframework in iOS. The framework contain sample demo that print send and receive log for xml. Now I implement same things in my app but no log is showing. </p>
  
  <p>Example of log for sample app</p>
  
  <pre><code>2014-05-08 16:34:15:993 iPhoneXMPP[4839:1403] SEND: &lt;?xml version='1.0'?&gt;
  2014-05-08 16:34:15:994 iPhoneXMPP[4839:1403] SEND: &lt;stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='meinantrieb.net'&gt;
  2014-05-08 16:34:16:384 iPhoneXMPP[4839:3503] RECV: &lt;stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="1364620848" from="meinantrieb.net" version="1.0" stream1:lang="en"/&gt;
  2014-05-08 16:34:16:384 iPhoneXMPP[4839:3503] RECV: &lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;&lt;starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/&gt;&lt;mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;&lt;mechanism&gt;SCRAM-SHA-1&lt;/mechanism&gt;&lt;mechanism&gt;ANONYMOUS&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="GgBjinftMQ4H81m+4jSVXMg/dVU="/&gt;&lt;register xmlns="http://jabber.org/features/iq-register"/&gt;&lt;/stream:features&gt;
  </code></pre>
  
  <p>Code For Adding Log in AppDelegate.m</p>
  
  <pre>#import "DDLog.h"
  #import "DDTTYLogger.h"
  
  // Log levels: off, error, warn, info, verbose
  #if DEBUG
  static const int ddLogLevel = LOG_LEVEL_VERBOSE;
  #else
  static const int ddLogLevel = LOG_LEVEL_INFO;
  #endif</pre>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      // Configure logging framework
      [DDLog addLogger:[DDTTYLogger sharedInstance]];
  }
  </code></pre>
  
  <p>Any help or suggestion will be well appreciated.</p>