mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 01:02:01 +03:00
🎯 What: Replaced direct `console.*` calls with a new `logger` utility throughout the codebase (application and tests). Use `.bind(console)` to preserve original log origin files. 💡 Why: Centralizes logging logic, making it easier to manage, format, or route logs differently in the future while maintaining observability. ✅ Verification: Ran `npm run test` to ensure all unit tests pass (including updating spy/mocks to target `logger` instead of `console`), and ran `npx tsc --noEmit` to confirm no type regressions. ✨ Result: Improved maintainability and consistent logging across the codebase. Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
5 lines
137 B
TypeScript
5 lines
137 B
TypeScript
export const logger = {
|
|
info: console.info.bind(console),
|
|
warn: console.warn.bind(console),
|
|
error: console.error.bind(console),
|
|
};
|