code: function (level, message) {
      	this.date.setTime(Date.now());
      	var prefix = this.date.toISOString() + " XMPP.js: ";
  	if (level === xmpp.LogLevel.DEBUG)
   	    console.log(prefix + "DEBUG: " + message);
  	else if (level === xmpp.LogLevel.INFO)
   	    console.log(prefix + "INFO: " + message);
  	else if (level === xmpp.LogLevel.WARN)
   	    console.log(prefix + "WARN: " + message);
  	else if (level === xmpp.LogLevel.ERROR)
   	    console.error(prefix + message);
  	else if (level === xmpp.LogLevel.FATAL)
   	    console.error(prefix + message);
      }
docs: Logging