aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-util/lib/log.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/gulp-util/lib/log.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/gulp-util/lib/log.js')
-rw-r--r--node_modules/gulp-util/lib/log.js16
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;
};