Error log by INI and in script

2

I have my error handling using the set_error_handler, set_exception_handler, register_shutdown_function functions, where I debug and write the error message with detailed information and in the PHP.INI enabled line: error_log = C:\webservice\PHP\log\erro.txt so that php itself manages its error log.

The problem is that when I use the functions mentioned above, the log is not created by PHP.INI, if I do not 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 proper log, having 2 error logs.

I would like to know if using the above functions overrides logging by PHP, or is there some line in the INI to set up for PHP to create the log itself regardless of whether I create mine.     

asked by anonymous 10.10.2014 / 05:58

1 answer

1

As explained in the PHP manual for the set_error_handler function :

  

It is important to remember that the default PHP error handler is   completely ignored.

    
10.10.2014 / 11:32