Description
Inline doc added in the logfile.ini gives an example of how you can set your storage logs dir.
This example includes and ending slash
https://github.com/ezsystems/ezpublish-legacy/blob/master/settings/logfile.ini#L6
It happens that viewcount.php adds an slash by itself.
https://github.com/ezsystems/ezpublish-legacy/blob/master/cronjobs/updateviewcount.php#L46
Because of that, you can end with this kind of path...
/var/log/httpd//yourlog.log. That double slash may produce a not found error in your script.