If there are no PHP-level errors, then the log file won't be created. Same with STRICT_ERROR_REPORTING.
If the file/folder isn't writable, then the logs can't be created.
The zc_xxxxxx.sql files are query caching. Their presence suggests that the folder is properly writable.



