mrmBot-Matrix/utils/logger.js

8 lines
297 B
JavaScript
Raw Normal View History

export function log(type, content) { return content ? console[type](content) : console.info(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); }