mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: scope should return a new logger instance
This commit is contained in:
@@ -15,7 +15,7 @@ export interface ILogger {
|
||||
info: LogLevelFunc;
|
||||
log: LogLevelFunc;
|
||||
measure: (tag: string) => void;
|
||||
scope: (scope: string) => void;
|
||||
scope: (scope: string) => ILogger;
|
||||
}
|
||||
|
||||
export class Logger implements ILogger {
|
||||
@@ -57,7 +57,9 @@ export class NoopLogger implements ILogger {
|
||||
info() {}
|
||||
log() {}
|
||||
measure(_tag: string) {}
|
||||
scope(_scope: string) {}
|
||||
scope(_scope: string) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
export * from "./types";
|
||||
|
||||
Reference in New Issue
Block a user