summarum/src/utils/logger.ts
google-labs-jules[bot] 2ba2556718 🧹 [code health] Refactor console logging to use dedicated logger utility
🎯 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>
2026-08-12 17:29:43 +00:00

5 lines
137 B
TypeScript

export const logger = {
info: console.info.bind(console),
warn: console.warn.bind(console),
error: console.error.bind(console),
};