Refactor logging in hooks, services, and routes to use centralized logger

- Replaced console.log and console.error statements with logger.info and logger.error in new-hook.ts, SDKAgent.ts, SessionManager.ts, and SessionRoutes.ts for consistent logging.
- Introduced log file creation and management in logger.ts, ensuring logs are saved to a file with a date-based naming convention.
- Enhanced error handling in logger to prevent crashes if log file operations fail.
This commit is contained in:
Alex Newman
2025-12-27 20:20:43 -05:00
parent b7d0664868
commit 356e3acae3
13 changed files with 226 additions and 185 deletions
File diff suppressed because one or more lines are too long