kahovskaia/laravel-log-viewer
Lightweight Laravel log viewer package for browsing application log files from within your app. Helps locate, filter, and inspect recent entries during development or debugging without leaving the Laravel environment.
Pros:
Log facade by providing a UI layer for log inspection (if extended with a frontend component).Cons:
Key Questions:
Low-Medium:
storage/logs/laravel.log). Custom log paths or formats may require extensions.Mitigation:
composer require kahovskaia/laravel-log-viewer:dev-main).Log::getLogs() (if exposed) to fetch entries and render them in a table with pagination.php artisan log:view command.composer require kahovskaia/laravel-log-viewer
LogViewer::read()).composer.json for supported versions (likely 8.x/9.x; may need patches for 10+).tail -f or cat).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Log file permissions denied | Logs unreadable | Ensure web server user has read access |
| Log rotation truncates old entries | Missing historical data | Configure log rotation to retain files |
| Package breaks on Laravel upgrade | Log viewer fails | Test on staging; fork if needed |
| No UI provided | Low usability | Build custom frontend (Livewire/Inertia) |
| Memory leaks in log parsing | App crashes under load | Use generators/streaming for large logs |
tail commands) with the new tool.failed-jobs table).How can I help you explore Laravel packages today?