how to include filename at the beginning of line in the error log

I’m troubleshooting a WordPress site hosted at GoDaddy and the PHP error log contains lines like:

[15-Nov-2017 19:12:44 UTC] The The “add_to_cart_fragments” hook uses out of date data structures […]

but the line doesn’t contain the filename of the PHP file that is generating the error. Is this a configurable option somewhere? How can I get the PHP error log to include the name of the file (and the line number, ideally) that is generating the error?

Sponsor our Newsletter | Privacy Policy | Terms of Service