Node.js / Grunt export log to file
gruntjs, logging, node.js
Solution
This is not actually grunt or node.js question. You need to use piping to tee.
grunt | tee log.txt
Or if you're using windows cmd:
grunt > log.txt | type log.txt
Problem
Is there any way of exporting the console log of your Grunt build to a *.txt file? I can run grunt in console with the >> thingy to export to file, like so: ``` grunt >> log.txt ``` But it does not log to console, only to file. And I'd like a module/task to do it for me after the build has finished.