How to enable or disable error tracking in the PHP agent?

How to enable or disable error tracking in the PHP agent?

To enable error tracking, set the zpa.track_errors directive to 1 in the zpa.ini (Linux) or php.ini (Windows) file.
Similarly, to disable, set it to 0.
To enable error tracking:
zpa.track_errors = 1
To disable error tracking:
zpa.track_errors = 0
To enable or disable error tracking for a specific application, update the .htaccess (Linux) or .user.ini (Windows) file.

In the .htaccess (Linux) file,
php_value zpa.track_errors 1
In the .user.ini (Windows) file,
zpa.track_errors = 1

Track errors based on their severity

This is only applicable to the agent versions 4.3 and above.
Based on their severity, errors are classified as follows:

  1. Notice: E_NOTICE, E_USER_NOTICE, E_STRICT, E_DEPRECATED, E_USER_DEPRECATED
  2. Warning: E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING
  3. Error: E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR

To track Notices, Warnings, and Errors:
zpa.track_errors=1
To track Warnings and Errors:
zpa.track_errors=2
To track only Errors:
zpa.track_errors=3



                  New to ADSelfService Plus?