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