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