super-productivity/scripts
Johannes Millan 97f96f2393 refactor: replace console.* with Log methods throughout codebase
- Created migration script to replace console.log/info/error/warn/debug with Log methods
- Replaced 584 console calls across 89 files:
  - console.log → Log.log (385 occurrences)
  - console.info → Log.info (4 occurrences)
  - console.error → Log.err (107 occurrences)
  - console.warn → Log.err (87 occurrences)
  - console.debug → Log.debug (1 occurrence)
- Added appropriate import statements for Log
- Removed unused Log imports from files with only commented-out usage
- Fixed all linting errors

All logging now goes through our centralized Log class which:
- Records logs to history for export/download
- Provides consistent log level filtering
- Supports context-aware logging
- Trade-off: Line numbers show log.ts instead of actual location
2025-07-10 14:15:56 +02:00
..
migrate-console-to-log.ts refactor: replace console.* with Log methods throughout codebase 2025-07-10 14:15:56 +02:00
remove-unused-log-imports.ts refactor: replace console.* with Log methods throughout codebase 2025-07-10 14:15:56 +02:00