code: function ConsoleLogger() {
  
      this.error = function () {
          if (loggingLevel(ERROR)) {
              console.error.apply(this, arguments);
          }
      };
  
      this.warn = function () {
          if (loggingLevel(WARN)) {
              console.warn.apply(this, arguments);
          }
      };
  
      this.info = function () {
          if (loggingLevel(INFO)) {
              console.info.apply(this, arguments);
          }
      };
  
      this.log = function () {
          if (loggingLevel(INFO)) {
              console.log.apply(this, arguments);
          }
      };
  
      this.debug = function () {
          if (loggingLevel(DEBUG)) {
              console.log.apply(this, arguments);
          }
      };
  
      this.setLevelToInfo = function () {
          setLevel(INFO);
      };
  
      this.setLevelToDebug = function() {
          setLevel(DEBUG);
      };
  
      this.setLevelToWarning = function() {
          setLevel(WARN);
      };
  
      this.setLevelToError = function() {
          setLevel(ERROR);
      };
  }
docs: Configurable console logger, default level is INFO
  
  @constructor