everysecond/laravel-log-viewer
Lightweight Laravel/Lumen log viewer. Install via Composer and add a route to LogViewerController to browse application logs in the browser. No public assets or vendor routes required; supports rotated logs and works across multiple Laravel versions.
storage/logs/). No conflicts with core Laravel features.LogViewerController) is straightforward. No database migrations, queue jobs, or complex configurations required.| Risk Area | Severity | Mitigation |
|---|---|---|
| Outdated Codebase | High | Last release in 2020; may not support modern Laravel (e.g., 10.x) or PHP 8.2+. Validate compatibility pre-integration. |
| Security | Medium | No public assets, but route access control (e.g., middleware) must be implemented manually. Risk of log exposure if not secured. |
| Performance | Low | Log parsing is file-based; no impact on runtime performance. High log volumes may slow UI rendering. |
| Maintenance Burden | Medium | Abandoned repo; fork or patching may be needed for long-term use. |
| Log Rotation Handling | Low | Works "with or without log rotate," but rotated logs may not be accessible post-rotation. |
composer require rap2hpoutre/laravel-log-viewer
routes/web.php:
Route::get('/logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
auth, throttle).config/log-viewer.php if available)..env or middleware.addRecord signature).laravel-log-rotate or native logrotate, but rotated logs may need symlinking or manual access.single, syslog), the package may not display them.tail -f for real-time logs).storage/logs/ must be writable).storage/logs/laravel.log manually if the UI fails.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Log file permissions denied | UI shows "No logs found" | Ensure storage/logs/ is writable by web server. |
| Laravel version incompatibility | Package fails to load | Downgrade Laravel or fork/patch the package. |
| Log rotation clears accessible logs | Historical logs vanish | Configure rotation to retain logs or symlink. |
| Unsecured route exposure | Log data leakage | Add auth middleware and rate limiting. |
| PHP version mismatch | Runtime errors | Use Docker/PHP version manager for isolation. |
tail, `How can I help you explore Laravel packages today?