|
trigger_error will only work with E_USER level errors. But I believe these are also logged natively when triggered. Returning true on that handler though may block it from reaching the native handler, but I'd need to test it out to verify.
Typically if you want to force a log, I'd suggest using the error_log function.
|