opcodesio/log-viewer
Fast, beautiful log viewer for Laravel. Browse and manage log files, search and filter entries by level, share links, use dark mode, and preview mails. Supports multiple hosts, Horizon logs, and an API for folders, files, and entries.
composer require, php artisan log-viewer:publish), with minimal configuration required for basic use. The package auto-detects Laravel logs (storage/logs/*) and supports additional log types (e.g., Nginx, Apache) via configuration.auth:api or auth:web) via config. Supports role-based access control (RBAC) for sensitive log data.www-data, nginx) to have read access to log files (e.g., /var/log/nginx/, storage/logs/). Misconfigurations may lead to "Logs not loading" errors (see Troubleshooting).IndexedLogReader) improves query speed but consumes memory for large log volumes. The package includes a rebuild command to evict stale indexes (v3.24.2)./api/logs) may become bottlenecks under high concurrent access. Caching (e.g., Redis) or rate-limiting should be considered for production.null as array key in v3.22.0) suggest ongoing maintenance, but no breaking changes are expected for Laravel 13.x.composer require opcodesio/log-viewer.php artisan log-viewer:publish.{APP_URL}/log-viewer with default Laravel logs.config/log-viewer.php to:
middleware: ['auth:admin']).log_types: ['nginx', 'postgres']).api_token: env('LOG_VIEWER_API_TOKEN')).GET /api/logs?level=error).resources/js/log-viewer/) for UI changes./log-viewer endpoint for DevOps/SRE teams.composer.json.How can I help you explore Laravel packages today?