- Add new logging module at src/api/core/logging/ with:
- ApiLogger singleton for structured request/response/error logging
- withLogging() wrapper for automatic stream metrics tracking
- createLoggingFetch() HTTP interceptor for raw request/response logging
- env-config for reading ROO_CODE_LOGGING from workspace .env.local
- Integrate logging into all 20+ providers via BaseProvider.getLogContext()
- Add protected providerName getter pattern to all provider classes
- Enable HTTP-level logging in OpenRouter provider as reference implementation
- Configuration: Set ROO_CODE_LOGGING=true in workspace .env.local to enable
- Logs include: provider name, model, operation, tokens, latency, errors
Test coverage: 67 tests passing for logging module and providers
* Chore: Pretier for consistant formatting
- TODO: This PR needs to be updated by Saoud after he runs `npm install` & `npm format:fix` and commits the results of the prettier changes.
* Revert prettier config
* Run npm install
* Fix prettier config and ignore package lock
* Run format
---------
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>