I have set a error_log value in php.ini and its reporting errors to that file correctly .In my site case there will be various events taking place so each will be maintained by others .So i wanted to write tht events errors to separate log files of tht events instead of writing everything to a single log file
so i tried this script but not working
as u can see i have made a error in the script so tht it generates error but its not writing to new file but still writing errors to old log file in php.ini. Any way to solve this
so i tried this script but not working
Code:
<?php ini_set('error_reporting', E_ALL); //error_reporting(E_ALL); ini_set('log_errors',TRUE); ini_set('html_errors',FALSE); ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'errors.txt'); //error_log('sadfsadasd','1',dirname(__FILE__) . DIRECTORY_SEPARATOR . 'errors.txt'); ini_set('display_errors',FALSE); error_reporting(E_ALL); $test="ttt echo $test; echo "<br/>"; echo dirname(__FILE__). DIRECTORY_SEPARATOR . 'Errors.log'; ?>
as u can see i have made a error in the script so tht it generates error but its not writing to new file but still writing errors to old log file in php.ini. Any way to solve this
Comment