whitebophir/server/log.js
2019-03-21 18:53:54 +01:00

7 lines
No EOL
184 B
JavaScript

function log(type, infos) {
var msg = new Date().toISOString() + '\t' + type;
if (infos) msg += '\t' + JSON.stringify(infos);
console.log(msg);
}
module.exports.log = log;