Skip to content

fix: support third-party loggers in toolbar logs collector#10173

Merged
michalsn merged 2 commits intocodeigniter4:developfrom
michalsn:fix/logger-collector
May 7, 2026
Merged

fix: support third-party loggers in toolbar logs collector#10173
michalsn merged 2 commits intocodeigniter4:developfrom
michalsn:fix/logger-collector

Conversation

@michalsn
Copy link
Copy Markdown
Member

@michalsn michalsn commented May 7, 2026

Description
This PR fixes a bug where the Debug Toolbar Logs collector could raise an undefined-property error when the application uses a third-party PSR-3 logger.

Before 4.6.4 Collectors\Logs::isEmpty() had buggy behavior, see: #9724

Fixes #10170

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added the bug Verified issues on the current code behavior or pull requests that will fix them label May 7, 2026
@michalsn michalsn merged commit 3405fc5 into codeigniter4:develop May 7, 2026
56 checks passed
@michalsn
Copy link
Copy Markdown
Member Author

michalsn commented May 7, 2026

Thanks for the reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: DebugBar's Logs collector not compatible with 3rd-Party PSR-3 loggers

3 participants