Is there an easy way to log PHP errors to a log for a specific script. So say I have 5 different scripts each one would have its own error log?
5 Answers
Yes, you could have separate set_error_handler for each script.
1 Comment
Madara's Ghost
You don't even need a separate error handler for each. If you do it correctly, you can have a single one for all 5.
you could simply create that on your own. http://php.net/manual/de/function.file-put-contents.php
Just build a small function and call it in every of your 5 scripts.