Monolog Logger
There's a bit of setup and configuration required for Monolog.
First you need to composer install it but it seems I've already done that at some point. Then we need to specify the location (file) to write to, a log level, and a name for the Logger instance.
Once everything is in place, we should start to see errors being written to the log.
Branch: https://github.com/GaryClarke/php-api-pro/tree/35-monolog
0 comments