kolamitin/laravel-log-viewer
Lightweight Laravel (and Lumen) log viewer. Install via Composer, register the service provider, and add a route to LogViewerController to browse log files in the browser. No public assets or vendor routes; works with rotated logs.
storage/logs directory.log-rotate)."We can cut debugging time in half by giving our engineers a self-service log viewer—no more waiting for DevOps to pull logs or guessing where errors hide. This Laravel Log Viewer package lets them search, filter, and analyze logs directly in the browser, just like a lightweight Sentry but for Laravel. It’s free, secure (no public routes), and installs in 10 minutes—no new tools or contracts. For $0, we reduce MTTR and free up DevOps bandwidth. If we hit limits (e.g., scaling), we can replace it later with a commercial tool."
Key Metrics to Track:
*"This package solves a pain point: Laravel logs are hard to debug in production. Current workflows involve:
- Grepping
storage/logsmanually (slow, error-prone).- Asking DevOps for log extracts (bottleneck).
- Using CLI tools like
tail -f(not scalable for distributed teams).Proposal: Add this zero-config log viewer to our stack. It:
- Works out-of-the-box with Laravel’s default logging.
- No vendor routes (secure by default; route is self-contained).
- Supports filtering by level, date, and context (critical for triaging).
- MIT-licensed (no legal risk).
Risks:
- Last updated in 2020 (mitigate by restricting to non-prod or forking).
- No real-time updates (but covers 80% of debugging needs).
Alternatives:
- Build: 2–4 weeks of work (UI, auth, filtering).
- Buy: Sentry/Laravel Debugbar (~$500+/mo for teams).
Recommendation: Pilot in staging for 2 weeks. If it reduces debugging time by >30%, roll it out to production. If not, we can sunset it with minimal cost."*
Engineering Trade-offs:
| Criteria | Log Viewer Package | Custom Build | Commercial Tool |
|---|---|---|---|
| Time to Implement | 30 mins | 2–4 weeks | 1–2 weeks |
| Cost | $0 | $0 (but dev time) | $500+/mo |
| Scalability | Low (single app) | High | High |
| Security | Medium (MIT, no routes) | High (custom) | High |
| Maintenance | Low (abandoned) | High | Low (vendor) |
*"Tired of
tail -f storage/logs/laravel.login production? This package adds a web-based log viewer to your Laravel app in 5 minutes. Just:
composer require kolamitin/laravel-log-viewer- Add a route to
LogViewerController.- Profit: pretty logs with filters for
error,debug, timestamps, etc.Why it’s useful:
- Find that
500 errorin seconds (no moregrephell).- Share logs with PMs/QA via a link (no more screenshots).
- Works with Lumen too.
Limitations:
- No real-time updates (refresh manually).
- Not for analytics (just debugging).
- Last updated in 2020 (use at your own risk).
How to try it:
composer require kolamitin/laravel-log-viewerAdd to
routes/web.php:Route::get('/logs', [\Rap2hpoutre\LogViewer\Controller\LogViewerController::class, 'index']);Access
/logs(add auth later!)."*
How can I help you explore Laravel packages today?