Add tabs on logger code
This commit is contained in:
parent
956435ba40
commit
c7fe3b36c5
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user