mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: add performance logger
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user