You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log.js 262B

123456789101112
  1. /**
  2. * Add a message to the logs
  3. * @param {string} type
  4. * @param {any} infos
  5. */
  6. function log(type, infos) {
  7. var msg = new Date().toISOString() + "\t" + type;
  8. if (infos) msg += "\t" + JSON.stringify(infos);
  9. console.log(msg);
  10. }
  11. module.exports.log = log;