cluster28/monolog-config-bundle
The cluster28/monolog-config-bundle is a Symfony/Laravel-specific Monolog configuration bundle, designed to centralize logging configurations across projects. Its architecture aligns with Laravel’s service container and configuration system, but its alpha status (2019 release) raises concerns about long-term viability. Key considerations:
ConfigurableInterface and Monolog’s ProcessorInterface, which may introduce tight coupling with Symfony’s dependency injection (DI) system. Laravel’s DI container is compatible but may require adapters for seamless integration.Symfony\Component\Config\Loader\LoaderInterface).strict_types=1 support).boot() logic).config/cache system. Test if it respects Laravel’s config/app.php precedence.monolog/monolog:^2.0), but version conflicts may arise with Laravel’s bundled Monolog (e.g., ^3.0).package:discover support).Monolog\Logger + config/logging.php?spatie/laravel-logging, darkaonline/l5-swagger) with active maintenance?composer.json updates, DI container adapters).single, daily, syslog).php artisan vendor:publish --tag=monolog-config).// config/app.php
'logging' => [
'use_bundle' => env('LOG_USE_BUNDLE', false),
],
bind() overrides:
$this->app->bind(
\Monolog\Logger::class,
fn() => $this->app->make(\Monolog\Logger::class)
);
config/logging.php vs. bundle-generated configs.config:dump to verify merged configurations."require": {
"monolog/monolog": "^2.0"
}
config/logging.php and test configurations.composer require cluster28/monolog-config-bundle:dev-master
php artisan vendor:publish --tag=monolog-config
config/app.php to load the bundle’s service provider.php artisan log:clear).composer why-not to check for conflicting updates.README.config/logging.php.Log::channel() for dynamic log switching.tideways/xhprof)..env-based config overrides work (e.g., LOG_LEVEL=debug).memory_get_usage()).if (!config('app.logging_bundle_enabled')) {
return; // Skip bundle logic
}
Monolog\Handler\ErrorHandler exceptions).How can I help you explore Laravel packages today?