code: function isAllowed(level) {
      var threshold = artoo.settings.log.level;
  
      if (artoo.helpers.isArray(threshold))
        return !!~threshold.indexOf(level);
      else
        return priorities.indexOf(level) >=
          priorities.indexOf(threshold);
    }
docs: Is the level allowed to log?