chore: merge blocksuite source code (#9213)

This commit is contained in:
Mirone
2024-12-20 15:38:06 +08:00
committed by GitHub
parent 2c9ef916f4
commit 30200ff86d
2031 changed files with 238888 additions and 229 deletions
@@ -0,0 +1,34 @@
export interface Logger {
debug: (message: string, ...args: unknown[]) => void;
info: (message: string, ...args: unknown[]) => void;
warn: (message: string, ...args: unknown[]) => void;
error: (message: string, ...args: unknown[]) => void;
}
export class ConsoleLogger implements Logger {
debug(message: string, ...args: unknown[]) {
console.debug(message, ...args);
}
error(message: string, ...args: unknown[]) {
console.error(message, ...args);
}
info(message: string, ...args: unknown[]) {
console.info(message, ...args);
}
warn(message: string, ...args: unknown[]) {
console.warn(message, ...args);
}
}
export class NoopLogger implements Logger {
debug() {}
error() {}
info() {}
warn() {}
}