php-debugbar/monolog-bridge
Bridge integration between Monolog and PHP DebugBar, sending log records to the DebugBar collector for easier inspection while developing. Useful for Laravel/Symfony or any PHP app using Monolog and DebugBar.
Install the package via Composer: composer require php-debugbar/monolog-bridge. Once installed, instantiate the bridge and attach it to your Monolog logger. Typically, in Laravel, you’d hook this into config/logging.php by creating a custom stack channel or extending the Monolog builder. Start by logging a test message (e.g., Log::debug('Debugbar bridge active');) and verify the message appears in the Debugbar’s “Messages” panel. Check the Debugbar UI in your browser—no setup required beyond basic Debugbar and Monolog configuration.
App\Providers\AppServiceProvider or via a dedicated service provider. Use DebugBar\Bridge\MonologBridge::attach($logger) to bind the logger instance.Stack::make(['single', 'debugbar'])) to combine file/standard logging with Debugbar visualization.Log::info($msg, $context) appears in Debugbar with full details—monolog-bridge preserves structured data for easier inspection.local or debug environments via environment checks to avoid performance impact in production.barryvdh/laravel-debugbar (or standalone Debugbar). If messages don’t appear, confirm the main Debugbar service is running and enabled.debugbar.enabled = false) in non-dev environments.debug, info) matches Debugbar’s visibility expectations. A warning-level logger won’t show debug messages unless reconfigured. Illuminate\Log\Listeners\MakeDebugbarListener) if available.How can I help you explore Laravel packages today?