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.
laravel-log-rotate) may require manual alignment to avoid log file access issues.single, daily, or third-party like monolog) may need explicit configuration.Monolog 3.x, Psr\Log interfaces).Log::channel() improvements). Unmaintained packages may break without updates.spatie/laravel-log-viewer) is adopted.Monolog or log channels that this package doesn’t support?spatie/laravel-log-viewer, beberlei/laravel-log-viewer) with better support?Log facade, Monolog).composer require kolamitin/laravel-log-viewer
Route::get('/logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
auth, role:admin).single, daily, custom) are accessible.Monolog configuration (e.g., use_single default in Laravel 8+).LogViewerServiceProvider to adapt to newer Laravel conventions.laravel-log-rotate).laravel-logger) for scalability.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Log file permissions denied | Viewer shows empty/broken logs | Ensure web server user has read access. |
| Log rotation during viewer access | Incomplete or duplicated logs | Coordinate rotation windows. |
| Laravel upgrade breaks compatibility | Viewer fails to load logs | Fork and backport fixes. |
| High log volume | Slow page load times | Add pagination or lazy-loading. |
| Security misconfiguration | Unauthorized log access | Restrict route with middleware. |
How can I help you explore Laravel packages today?