Jump to content

make error_log work with set_error_handler


nolanpro

Recommended Posts

I have defined a function for error handling with set_error_handler but its not catching anything that gets sent with the error_log function.

 

I'm running from CLI, tried capturing with ob but it only captures stdout, not stderr, which is where error_log is going.

 

use case: simplePie throws notices with error_log, and its wreaking havoc on my cron job output. I would like for it to go to a handler instead of editing simplePie, as to make drop-in upgrades to simplePie easy.

 

Any ideas? Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.