That change is based on (by mysqlf tested) forum patch ; {HOME_DIR} is in this case:
/var/www/virtual/<domain-name>/
so the full filename is:
/var/www/virtual/<domain-name>/logs/php_error.log

so it's dynamic already, the customers logs dir is used.