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.
daily log rotation (e.g., laravel-2024-05-10.log) out-of-the-box, aligning with Laravel’s logging best practices.SQLSTATE[42S22] errors").gzip or stored in remote systems (e.g., S3, Syslog). Requires pre-processing for these cases.storage/logs/ owned by wrong user). Requires explicit permission checks in CI/CD or deployment scripts.InvalidArgumentException in FileViewFinder.php is a known issue tied to cached configs. Mitigate with php artisan config:clear in deployment hooks./logs route could leak sensitive data (e.g., stack traces, API keys). Must be secured with middleware (e.g., auth, admin)./logs route be protected in production? (e.g., IP whitelisting, OAuth, or internal-only access?)composer.json and run composer install.config/app.php (or bootstrap/app.php for Lumen).routes/web.php with middleware (e.g., Route::get('logs', ...)->middleware('auth')).config/logviewer.php if logs are in non-default locations.log.blade.php if UI changes are needed (e.g., branding, additional controls).ab or Chrome DevTools (target <2s load time).config:clear due to cached views.v1.7.0 for Laravel 6–10).syslog, monit), ensure the package’s file reader can parse the output.daily rotation but not compressed logs (.gz). Disable compression in config/logging.php if needed:
'daily' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
// Remove or set 'compress' => false
],
config:clear./logs: Missing route or service provider. Verify RouteServiceProvider boots the package.php artisan config:clear.storage/logs/ permissions (chmod -R 755 storage/logs).tail -f storage/logs/laravel.log to verify logs are being written.storage/framework/views for cached Blade errors.logrotate to split files.How can I help you explore Laravel packages today?