chore: add performance logger

This commit is contained in:
李华桥 authored and LongYinan committed 2023-11-10 00:33:48 +08:00
1 parent 927a6489f9
commit 09c3a8828f
10 files changed
+79 -3

No files matched your search

+5
View File
@@ -58,4 +58,9 @@ export class DebugLogger {
this._debug.log = console[level].bind(console);
this._debug(`[${level.toUpperCase()}] ${message}`, ...args);
}
namespace(extra: string) {
const currentNamespace = this._debug.namespace;
return new DebugLogger(`${currentNamespace}:${extra}`);
}
}