golovchanskiy/laravel-good-log-viewer
LaravelGoodLogViewer is a simple log reader, parser, and viewer for Laravel 5. Install via Composer, register the service provider and facade, publish config/translations, then browse logs at /logs. Includes English and Russian locales.
GoodLogViewer) simplifies log retrieval/parsing, but may introduce tight coupling if overused in business logic. Prefer direct dependency injection for critical paths.composer require installation with minimal configuration (service provider + alias)./logs endpoint is a basic web UI—not suitable for production-grade observability but adequate for local/dev environments./logs publicly could leak sensitive data. Must be gated behind middleware (e.g., auth:api or trusted).ru/en; may need i18n extensions for other languages.composer require golovchanskiy/laravel-good-log-viewer
php artisan good-log-viewer:publish
config/app.php with provider/alias.config/good-log-viewer.php (e.g., log paths, retention)./logs route:
Route::get('/logs', function () {
return GoodLogViewer::show();
})->middleware(['auth:api', 'throttle:60,1']);
/logs endpoint load.composer update + config checks.log-rotate package) and external log shippers (e.g., Filebeat).| Scenario | Impact | Mitigation |
|---|---|---|
| Log file corruption | UI errors, missing entries | Backup logs; use log:clear cautiously. |
High traffic to /logs |
Server overload | Rate limit; cache parsed logs (e.g., Redis). |
| Laravel 5.x upgrade | Package breaks | Fork and backport or replace. |
| Sensitive data leaks | Security breach | Restrict route access; sanitize logs. |
Golovchanskiy\LaravelGoodLogViewer\LogParser./logs endpoint’s security boundaries (e.g., "Do not use in production").How can I help you explore Laravel packages today?