Closed kaihendry closed 2 weeks ago
what do you mean by "it is not working as expected" ?
I expected monolog to hook into error_log
PHP's error_log
function does not report its messages to the PHP error handler system. It directly sends it to the PHP system logger, which is not hookable in userland.
Right the way to trigger it is to call trigger_error().. But really if you wanna trigger the logger, please call the logger :)
Monolog version 3.7
https://gist.github.com/kaihendry/6ad32ed135e3d679e6dd896365b252cb
The error handler is not working as expected, it shows: