error_log('error_func',3,'error_log.txt');error_log.txt error log is written in, and all goes to apache/logs/error.log
autoload2021-10-15 09:47:25
I tried it and it works. Please take a look at the path where your php file is located. You can also set the error_log log directory in php.ini