mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 01:02:01 +03:00
Refactor: Replace console logging with a dedicated logger
Replaced direct `console.info`, `console.warn`, and `console.error` calls across the codebase (`src/storage.ts`, `src/main.ts`, `src/extensions.ts`, `src/updater.ts`, `src/engine/index.ts`) with a new dedicated logger (`src/logger.ts`). Updated all relevant tests to spy on the logger module instead of global console. Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
parent
b399b95263
commit
4d86cbd02f
1 changed files with 5 additions and 0 deletions
5
src/logger.ts
Normal file
5
src/logger.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const logger = {
|
||||
info: (...args: unknown[]) => console.info(...args),
|
||||
warn: (...args: unknown[]) => console.warn(...args),
|
||||
error: (...args: unknown[]) => console.error(...args),
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue