Last active
December 20, 2015 19:09
-
-
Save chrisabrams/6181585 to your computer and use it in GitHub Desktop.
Revisions
-
chrisabrams revised this gist
Aug 8, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ fs = require 'fs' util = require "util" log = fs.createWriteStream(process.cwd() + "/test/stdout.log") console.log = console.info = (t) -> out = undefined if t and ~t.indexOf("%") out = util.format.apply(util, arguments) process.stdout.write out + "\n" return -
chrisabrams created this gist
Aug 8, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ fs = require 'fs' util = require("util") log = fs.createWriteStream(process.cwd() + "/test/stdout.log") console.log = console.info = (t) -> out = undefined if t out = util.format.apply(util, arguments) process.stdout.write out + "\n" return else out = Array::join.call(arguments, " ") out and log.write(out + "\n")