NewsBlur/node/log.js

22 lines
545 B
JavaScript
Raw Normal View History

2020-12-17 18:59:49 -05:00
// Generated by CoffeeScript 2.5.1
2013-05-01 12:51:59 -07:00
(function() {
var debug, info;
2013-05-01 12:51:59 -07:00
info = function(username, message) {
var timestamp;
timestamp = new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '');
2020-12-17 18:59:49 -05:00
return console.log(`[${timestamp}] ---> [${username}] ${message}`);
2013-05-01 12:51:59 -07:00
};
debug = function(message) {
var timestamp;
timestamp = new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '');
2020-12-17 18:59:49 -05:00
return console.log(`[${timestamp}] ---> ${message}`);
};
2013-05-01 12:51:59 -07:00
exports.info = info;
exports.debug = debug;
2013-05-01 12:51:59 -07:00
}).call(this);