Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with MonologCollector collector for Laravel >= v5.6 #982

Merged

Conversation

ekateiva
Copy link
Contributor

There is an issue if you set debugbar.collectors.messages => false and debugbar.collectors.log => true. The problem occurs because logging was refactored in Laravel 5.6 and getMonolog() method does not exist on a new Illuminate\Log\Logger (PR: laravel/framework#22635). Related issue: #972

This PR solves this problem for Laravel versions 5.6, 5.7 and 5.8.

However the problem with Laravel 6.0 still exists, if monolog/monolog ^2.0 is used, because the method signature was changed in AbstractProcessingHandler and maximebf/php-debugbar does not support it yet.(https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/AbstractProcessingHandler.php#L50). There is an open PR for this issue: php-debugbar/php-debugbar#427. However, this issue with Laravel 6.x maybe could be solved in a separate PR.

Logging was refactored in Laravel 5.6. `getMonolog()` method does not exist on a new Illuminate\Log\Logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants