Skip to content
New issue

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

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

Already on GitHub? # to your account

feat(log): allow usage of multiple same log channels #718

Merged

Conversation

aazsamir
Copy link
Contributor

Right now, it isn't possible to correctly declare AppendLogChannel more than once in LogConfig. It will result in same log, being logged in same channel multiple times.

This changes this behaviour, by storing Monolog instance by spl_object_id, not class name.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11788471385

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.455%

Totals Coverage Status
Change from base Build 11788680368: 0.0%
Covered Lines: 7256
Relevant Lines: 8800

💛 - Coveralls

@brendt brendt merged commit 68d7e54 into tempestphp:main Nov 12, 2024
57 checks passed
@brendt
Copy link
Member

brendt commented Nov 12, 2024

Thanks!

@aazsamir aazsamir deleted the feat/allow-multiple-same-log-channels branch November 12, 2024 12:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants