Add tabs on logger code

This commit is contained in:
fullgream 2025-08-17 23:25:21 +03:00
parent 956435ba40
commit c7fe3b36c5

View File

@ -1,18 +1,18 @@
class Logger {
static log (...p) {
console.log("[", new Date(), "]:", ...p);
}
static warn (...p) {
console.warn("[", new Date(), "]:", ...p);
}
static debug (...p) {
console.debug("[", new Date(), "]:", ...p);
}
static wslog (...p) {
static log(...p) {
console.log("[", new Date(), "]:", ...p);
}
static warn(...p) {
console.warn("[", new Date(), "]:", ...p);
}
static debug(...p) {
console.debug("[", new Date(), "]:", ...p);
}
static wslog(...p) {
// return;
Logger.log("[WebSocket]:", ...p);
}
static error (msg, error, level) {
static error(msg, error, level) {
console.error("[", new Date(), "]:", msg, `\n${error.stack}`);
}
}