File structure setup like so,
mainDirectory
-app
--logs
---errors.log
-file.php
Inside of file.php I have,
ini_set("log_errors", 1);
ini_set("error_log", "logs/errors.log");
I then try to output results like this later,
error_log( print_r($response, TRUE) );
However it just dumps to console. I then tried various checks like
if( file_exists( "logs/errors.log" ) ) {
echo 'yup';
}
else {
echo 'nope';
}
And each time is "nope"
Am I missing something obvious here?
Thank you.
ls -dl logsfrom app directory to check.