It would be nice if it were that simple ... console.log () only outputs client information to the client; however, since you are running on the server side, you will not see anything pop up in the browser console (rather, on the server console, perhaps on your terminal).
There is a way around this thanks to the work of others, for example: https://github.com/ethanl/connect-browser-logger
This will basically cause you to select these server logs for the client. If you do Google, you will find many other solutions (some of which can set breakpoints, execute code, etc.).
Not shabby!
Edit: Christ, I just realized that you want the log to be in your grunt file. This is a slightly different story, but it should still work for you!
source share