Two features of PHP that I believe are often overused when it comes to “debugging” are using echo and var_dump. I’ve talked about this in a few different articles around debugging (like in here and here).
And as much as I am a fan of using a debugger, I think it’s also important to implement a type of logging system so that you or your client can go back and review the activity that’s been happening within the system as they or their users have been, you know, using it.
There are two aspects to doing this, though, especially if you’re looking to following the PSR logging interface and they are:
- the rules for the actual logging interface,
- a project that properly implements said logging interface.
So why not tackle both in this post?