text: /* global Strophe */
  /**
   * Strophe logger implementation. Logs from level WARN and above.
   */
  var logger = require("jitsi-meet-logger").getLogger(__filename);
  var strophe = require("node-strophe").Strophe;
  var Strophe = strophe.Strophe;
  
  module.exports = function () {
  
      Strophe.log = function (level, msg) {
          switch (level) {
              case Strophe.LogLevel.WARN:
                  logger.warn("Strophe: " + msg);
                  break;
              case Strophe.LogLevel.ERROR:
              case Strophe.LogLevel.FATAL:
                  logger.error("Strophe: " + msg);
                  break;
          }
      };
  
      Strophe.getStatusString = function (status) {
          switch (status) {
              case Strophe.Status.ERROR:
                  return "ERROR";
              case Strophe.Status.CONNECTING:
                  return "CONNECTING";
              case Strophe.Status.CONNFAIL:
                  return "CONNFAIL";
              case Strophe.Status.AUTHENTICATING:
                  return "AUTHENTICATING";
              case Strophe.Status.AUTHFAIL:
                  return "AUTHFAIL";
              case Strophe.Status.CONNECTED:
                  return "CONNECTED";
              case Strophe.Status.DISCONNECTED:
                  return "DISCONNECTED";
              case Strophe.Status.DISCONNECTING:
                  return "DISCONNECTING";
              case Strophe.Status.ATTACHED:
                  return "ATTACHED";
              default:
                  return "unknown";
          }
      };
  };
  