code: function (level) {
  
      if (!level || typeof level !== 'object') {
        throw new Error('The first parameter must be an object describing the level.');
      }
      if (typeof level.name !== 'string' || !level.name.length) {
        throw new Error('The level object must have a name property.');
      }
  
      return extend({
        name: null,
        priority: 3,
        color: null
      }, level);
    }
docs: Parse new level.
  @private
  @param {Object} level