code: function printMsg ( msgId, data ) {
      var outputFn;
  
      if ( messages.hasOwnProperty( msgId) ) {
        switch ( msgId.match( /^[A-Z]+/ )[0] ) {
          case 'INFO':
            outputFn = grunt.log.writeln;
            break;
  
          case 'VERBOSE':
            outputFn = grunt.verbose.writeln;
            break;
  
          case 'DEBUG':
            outputFn = grunt.log.debug;
            break;
  
          default:
            outputFn = grunt.fail.warn;
        } // switch
  
        outputFn( grunt.template.process( messages[ msgId ], { data: data } ) );
      }
    }
docs: Prints out a message according to the type of message ID.