diff options
Diffstat (limited to 'node_modules/gulp-util/lib/log.js')
-rw-r--r-- | node_modules/gulp-util/lib/log.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/node_modules/gulp-util/lib/log.js b/node_modules/gulp-util/lib/log.js index bb843beef..e33d15ed9 100644 --- a/node_modules/gulp-util/lib/log.js +++ b/node_modules/gulp-util/lib/log.js @@ -1,14 +1,10 @@ -var hasGulplog = require('has-gulplog'); +var colors = require('./colors'); +var date = require('./date'); module.exports = function(){ - if(hasGulplog()){ - // specifically deferring loading here to keep from registering it globally - var gulplog = require('gulplog'); - gulplog.info.apply(gulplog, arguments); - } else { - // specifically defering loading because it might not be used - var fancylog = require('fancy-log'); - fancylog.apply(null, arguments); - } + var time = '['+colors.grey(date(new Date(), 'HH:MM:ss'))+']'; + var args = Array.prototype.slice.call(arguments); + args.unshift(time); + console.log.apply(console, args); return this; }; |