[Logging] Simplify log func
This commit is contained in:
parent
91f0784b00
commit
65058550f2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue