gopalindians/laravel-log-viewer
Lightweight log viewer for Laravel 6–13 and Lumen. Install via Composer and add a single route to LogViewerController—no public assets or vendor routes required. Works with rotated logs and supports view customization via publishing.
tail -f storage/logs/laravel.log).single or daily rotation), ensuring logs aren’t lost during cleanup.Adopt When:
grep/awk scripts).Look Elsewhere If:
log-aware middleware or Sentry)."This package lets our engineering teams self-serve log debugging without third-party tools, cutting incident resolution time by ~30%. For example, a frontend engineer can now inspect backend logs directly in their browser during API integration tests—no more waiting for DevOps. It’s a $0 alternative to tools like Sentry or Datadog for non-critical use cases, and it integrates seamlessly with our existing Laravel stack. The MIT license means no vendor lock-in, and the lightweight design won’t impact performance. We’re proposing a pilot in staging to validate adoption before potential expansion to production."
Key Ask:
*"This is a drop-in log viewer for Laravel that:
- Replaces
tail -f: View logs in a browser with syntax highlighting and pagination.- Works out of the box: No config needed beyond
composer requireand a route.- Supports Lumen: Critical for our API teams.
- No bloat: No public assets or vendor routes—just a clean UI.
Proposal:
- Install in staging to test with the QA team.
- Add a /logs route (protected by
auth) for internal use.- Document in the internal wiki as the ‘go-to’ tool for debugging.
Trade-offs:
- No log retention control (relies on Laravel’s defaults).
- Basic UI (but extensible if we need filters/search later).
Next Steps: Let’s pair-program the install and gather feedback from 2–3 teams before scaling."*
Key Ask:
How can I help you explore Laravel packages today?