mrmBot-Matrix/utils/logger.js

8 lines
303 B
JavaScript
Raw Normal View History

exports.log = (type, content) => content ? process.send({ name: type, msg: content }) : process.send({ name: "info", msg: type });
2019-09-13 20:02:41 +00:00
exports.error = (...args) => this.log("error", ...args);
exports.warn = (...args) => this.log("warn", ...args);
exports.debug = (...args) => this.log("debug", ...args);