mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-12-29 23:03:02 +05:00
Compare commits
3 commits
61a8926f0b
...
df14cba0d5
Author | SHA1 | Date | |
---|---|---|---|
|
df14cba0d5 | ||
|
11c1c5640e | ||
|
b570759c09 |
1 changed files with 12 additions and 12 deletions
|
@ -21,27 +21,27 @@ const logLevels = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
log(content) {
|
log(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.LOG} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.LOG} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
warn(content) {
|
warn(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.WARN} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.WARN} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
error(content) {
|
error(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.ERROR} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.ERROR} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
debug(content) {
|
debug(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.DEBUG} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.DEBUG} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
cmd(content) {
|
cmd(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.CMD} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.CMD} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
ready(content) {
|
ready(...content) {
|
||||||
return console.log(`[${format(Date.now())}]: ${logLevels.READY} ${content}`);
|
return console.log(`[${format(Date.now())}]: ${logLevels.READY} ${content.join(" ")}`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue