forked from Mirrors/OpenAsar
[Logging] Simplify log func
parent
91f0784b00
commit
65058550f2
@ -1,3 +1,3 @@
|
||||
const rgb = (r, g, b, text) => `\x1b[38;2;${r};${g};${b}m${text}\x1b[0m`;
|
||||
|
||||
module.exports = (area, ...args) => console.log(`[${rgb(88, 101, 242, 'OpenAsar')}${area ? ` > ${area}` : ''}]`, ...args);
|
||||
module.exports = (area, ...args) => console.log(`[${rgb(88, 101, 242, 'OpenAsar')} > ${area}]`, ...args);
|
Loading…
Reference in new issue