gruntjs/grunt — pull request #586 by shama (2012-12-18 23:50:23+00:00)
Title: Turn grunt.log into a readable stream

This is an alternate to PR #570 and makes `grunt.log` a readable stream (instead of passing an argument).

`grunt.log` will function as normal but now a user can tap into the stream:

```javascript
grunt.log.on('data', function(msg) {
// handle some fancy reporting here
});
```

Or pipe the output to a logfile:
```javascript
grunt.log.pipe(fs.createWriteStream('./logfile.txt'));
```

Which will write everything to `./logfile.txt` in addition to writing to `process.stdout`.