mrmBot-Matrix/utils/logger.js

7 lines
336 B
JavaScript

export function log(type, content) { return content ? process.send({ op: type, msg: content }) : process.send({ op: "info", msg: type }); }
export function error(...args) { return log("error", ...args); }
export function warn(...args) { return log("warn", ...args); }
export function debug(...args) { return log("debug", ...args); }