2016-11-03 01:33:53 +01:00
|
|
|
var colors = require('./colors');
|
|
|
|
var date = require('./date');
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
module.exports = function(){
|
2016-11-03 01:33:53 +01:00
|
|
|
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);
|
2016-10-10 03:43:44 +02:00
|
|
|
return this;
|
|
|
|
};
|