2
I have my error handling using the functions set_error_handler, set_exception_handler, register_shutdown_function
, where I debug and write the error message with detailed information and on PHP.INI enabled the line: error_log = C:\webservice\PHP\log\erro.txt
so php itself generates its error log.
The problem is that when I use the above functions, the log is not created by PHP.INI, if I don’t use the functions, then PHP.INI creates the log. It seems that the log is created either by one or the other and not together, and I would like to debug and create my log and allow PHP to create the log itself, taking 2 error logs.
I was wondering if the use of the above functions override the creation of the log by PHP, or is there a line in the INI to configure for PHP to create its own log independently of me creating my own.
see (http://php.net/manual/en/function.set-error-handler.php) 2nd paragraph. If you return false in callback it logs?
– tinos