Logging to the PHP error log is fine - except when someone who is not a developer and without backend access to the server wants to see / search the logs.
General developer forum
PSR style logger
This discussion has been locked so you can no longer reply to it.