📊 Logs Dashboard & Real-Time Console Viewer
✨ New Features
- Logs Dashboard — Consolidated 4-tab page at
/dashboard/logs(Request Logs, Proxy Logs, Audit Logs, Console) - Console Log Viewer — Terminal-style real-time viewer with color-coded levels, search, level filter, auto-scroll
- Console Interceptor — Captures all
console.*output as JSON lines tologs/application/app.log - Log Rotation — Size-based rotation and retention-based cleanup for log files
🔧 Improvements
- Moved
initAuditLog()andcleanupExpiredLogs()to Next.jsinstrumentation.ts - Fixed pino logger file transport (broken mix of transport + stream)
- Added
appendFileSyncfile writing tostructuredLogger.ts
⚙️ New Environment Variables
| Variable | Default | Description |
|---|---|---|
LOG_TO_FILE
| true
| Enable/disable file logging |
LOG_FILE_PATH
| logs/application/app.log
| Log file path |
LOG_MAX_FILE_SIZE
| 50M
| Max file size before rotation |
LOG_RETENTION_DAYS
| 7
| Days to retain old log files |
Full Changelog: https://github.com/diegosouzapw/OmniRoute/blob/main/CHANGELOG.md