index.js
function writeLog(levelName, varArgs) {       // eslint-disable-line no-unused-vars

          const args = [].slice.call(arguments);
          args.splice(0, 1);

          const str = format(new Date(), levelName, label, args);
          if (LEVELS[levelName] <= LEVELS.warn) {
              outputFunctions.error(str);
          } else {
              outputFunctions.log(str);
          }
      }
function writeLog(levelName, varArgs) {       // eslint-disable-line no-unused-vars

          const args = [].slice.call(arguments);
          args.splice(0, 1);

          const str = format(new Date(), levelName, label, args);
          if (LEVELS[levelName] <= LEVELS.warn) {
              outputFunctions.error(str);
          } else {
              outputFunctions.log(str);
          }
      }
function writeLog ( levelName , varArgs ) { // eslint-disable-line no-unused-vars const args = [ ] . slice . call ( arguments ) ; args . splice ( 0 , 1 ) ; const str = format ( new Date ( ) , levelName , label , args ) ; if ( LEVELS [ levelName ] <= LEVELS . warn ) { outputFunctions . error ( str ) ; } else { outputFunctions . log ( str ) ; } }
Create the log for writing.
@param  {string} levelName - The name of the level to log at.
@param  {...*} varArgs     - The parameters of the original log.
@private
Create the log for writing .