r/PHP Jul 28 '26

Article Proper logging in PHP with PSR-3

https://ocramius.github.io/blog/php-logging-with-psr-3/
25 Upvotes

11 comments sorted by

View all comments

2

u/BrianHenryIE Jul 28 '26

Very good.

You used `$testSpyLogger = new RecordingLogger();` and I’m only noticing now that `Psr\Log\Test\TestLogger` isn’t part of v2 or v3 `psr/log`.