Commit graph

2 commits

Author SHA1 Message Date
Johannes Millan
581d41cc0c refactor: complete migration from console.* to Log methods
- Replaced remaining 100 console.* calls across 100 files
- Fixed all console.log, console.error, console.warn calls
- Removed unused Log imports from 18 files
- Created force migration script to handle all edge cases
- All non-test files now use centralized Log class

Benefits:
- All application logs are now recorded for export
- Consistent log level filtering
- Better debugging with log history
- Centralized logging configuration
2025-07-10 14:25:02 +02:00
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