Compare commits

...

3 commits

Author SHA1 Message Date
Slincnik
df14cba0d5
Merge 11c1c5640e into b570759c09 2024-12-13 22:10:53 +05:00
Slincnik
11c1c5640e
fix(logger): added support many args in every func 2024-12-13 20:09:51 +03:00
Jonny_Bro (Nikita)
b570759c09
Update README.md
remove codefactor image
2024-12-09 10:33:09 +05:00

View file

@ -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(" ")}`);
}, },
}; };