rap2hpoutre/laravel-log-viewer
View Laravel and Lumen log files in the browser with a lightweight log viewer. Install via Composer, register the service provider, and add a single route to LogViewerController—no public assets or vendor routes. Works with rotated logs.
auth, admin), aligning with internal security policies for staging/production environments.Adopt when:
/logs to admins only).laravel.log, laravel-{date}.log).Look elsewhere when:
.gz or custom decryption)."This open-source package gives our engineering team instant visibility into Laravel logs—no extra cost, no infrastructure. By adding a single route (/logs), developers can debug issues 10x faster in staging, reducing downtime and support tickets. It’s MIT-licensed, actively maintained, and integrates in minutes. For $0, we eliminate the need for custom tools or third-party services, freeing up budget for higher-priority projects."
Key Outcomes: ✅ Faster debugging → Fewer production incidents. ✅ Zero dev cost → No hiring or tooling expenses. ✅ Security-compliant → Access can be locked down via middleware. ✅ Future-proof → Works with Laravel’s latest versions.
"This package replaces manual tail -f storage/logs/laravel.log with a searchable, browser-based log viewer—just add a route and go. It handles Laravel’s daily log rotation automatically and lets you customize the UI or restrict access. Perfect for dev/staging environments where you need quick insights without setting up ELK or Datadog."
Why It’s a No-Brainer:
🔹 30-second setup: composer require, route, done.
🔹 No vendor lock-in: MIT license, no SaaS dependencies.
🔹 Extensible: Override the controller or Blade template for custom needs.
🔹 Troubleshooting built-in: Color-coded logs, search, and filtering save hours weekly.
Gotchas to Call Out:
⚠️ Not for production: Large logs (>100MB) will slow the page.
⚠️ Permissions matter: Ensure storage/logs/ is readable by the web server.
⚠️ No compressed logs: Avoid .gz log rotation if using this tool.
How can I help you explore Laravel packages today?