mrmBot-Matrix/utils/logger.js
2021-07-04 23:15:27 -05:00

7 lines
299 B
JavaScript

exports.log = (type, content) => content ? process.send({ op: type, msg: content }) : process.send({ op: "info", msg: type });
exports.error = (...args) => this.log("error", ...args);
exports.warn = (...args) => this.log("warn", ...args);
exports.debug = (...args) => this.log("debug", ...args);