I don\'t know if there\'s any? but is php built in web server also save its error logs in a file? for tailing purposes, like when creating virtual host in apache.
UP
When using PHP builtin server on macOS, you need to specify error_log
in your php.ini
config file (php -i | grep php.ini
).
If you decide with syslog
(instead of a log file) such as:
error_log = syslog
Then to dump the logs, you can use log
command on macOS, e.g.
log stream --predicate 'processImagePath contains "php"'
Otherwise use some specific file path for the error log (e.g. /usr/local/var/log/php-error.log
).