mrmBot-Matrix/utils/logger.js

8 lines
299 B
JavaScript
Raw Normal View History

2021-07-05 04:15:27 +00:00
exports.log = (type, content) => content ? process.send({ op: type, msg: content }) : process.send({ op: "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);