mrmBot-Matrix/utils/logger.js

8 lines
336 B
JavaScript
Raw Normal View History

export function log(type, content) { return content ? process.send({ op: type, msg: content }) : process.send({ op: "info", msg: type }); }
2019-09-13 20:02:41 +00:00
export function error(...args) { return log("error", ...args); }
2019-09-13 20:02:41 +00:00
export function warn(...args) { return log("warn", ...args); }
2019-09-13 20:02:41 +00:00
export function debug(...args) { return log("debug", ...args); }