colbeh/logs
A Laravel logging helper package that aims to simplify writing and managing application logs. Provides convenient utilities for recording messages and events so you can debug issues and track activity more easily within your Laravel app.
colbeh/logs) appears to provide a Laravel-specific solution for daily log aggregation and viewing, which could be useful for:
laravel-logger or monolog for structured UI access).Log::channel()). Assumes Laravel’s logging stack (Monolog) is already in place.Psr\Log\LoggerInterface), integration should be straightforward via:
$this->app->bind('log', function () {
return (new \Colbeh\Logs\Logger)->setChannel('daily');
});
storage/logs/). Custom storage adapters (S3, database) would need manual configuration.can:view-logs middleware).Route::get('/logs')).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Single Responsibility | Medium | Logs may mix application and system logs; consider splitting channels. |
| No Active Maintenance | High | Fork or patch if critical bugs arise (last release: 2022). |
| Performance Overhead | Low | Minimal if logs are stored locally; risky for high-volume apps. |
| Security Gaps | Medium | Logs may expose sensitive data; enforce Log::only() or masking. |
Log::view() or a dedicated tool like Laravel Debugbar?composer require colbeh/logs
config/logging.php to route a channel (e.g., daily) to the package.php artisan logs:view (if CLI command exists).debug channel).auth:sanctum).Log::getMonolog()->read().composer.json).composer why-not colbeh/logs.illuminate/log (Laravel’s core logger).config/logging.php).storage/logs/).AppServiceProvider@boot().php artisan vendor:publish).LogsTest).du -sh storage/logs/).Log::debug() vs. Log::error()).grep or custom queries).Log::getMonolog()->read() directly.storage/logs/ can fill disk space quickly (e.g., 1GB/day at 100MB/day).Log::only() to exclude verbose logs or rotate logs via Log::useDailyFiles().| Scenario | Impact | Recovery Plan |
|---|---|---|
| Storage Full | Logs truncated; app crashes. | Set up logrotate or S3 archival. |
| Package Bug | Logs unreadable/corrupted. | Revert to Monolog directly. |
| Permission Issues | Logs inaccessible. | chmod -R 775 storage/logs/. |
| Laravel Update | Package compatibility broken. | Fork and patch or switch tools. |
artisan, tail).How can I help you explore Laravel packages today?